<Window x:Class="PercentProgress.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:PercentProgress" mc:Ignorable="d" Title="MainWindow" Height="350" Width="525"> <Grid> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition /> <RowDefinition /> <RowDefinition /> <RowDefinition /> </Grid.RowDefinitions> <local:PerProBar Grid.Row="0" x:Name="proBar0" BarValue="98" ForegroundColor="0"/> <local:PerProBar Grid.Row="1" x:Name="proBar1" BarValue="98" ForegroundColor="1"/> <local:PerProBar Grid.Row="2" x:Name="proBar2" BarValue="98" ForegroundColor="2"/> <local:PerProBar Grid.Row="3" x:Name="proBar3" BarValue="98" ForegroundColor="3"/> <local:PerProBar Grid.Row="4" x:Name="proBar4" BarValue="98" ForegroundColor="4"/> </Grid></Window>
评论