You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
3.2 KiB
XML

<UserControl x:Class="XGL.UControl.UCArea"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:XGL.UControl"
mc:Ignorable="d"
d:DesignHeight="176" d:DesignWidth="225" Width="225" Height="176">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/XGL;component/CSS/SearchBtnClass.xaml"></ResourceDictionary>
<ResourceDictionary Source="/XGL;component/CSS/SearchTextClass.xaml"></ResourceDictionary>
<ResourceDictionary Source="/XGL;component/CSS/DataGridClass.xaml"></ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Canvas Width="225" Height="176">
<Border CornerRadius="8,8,8,8" Background="#73767f" Width="225" Height="176">
<Grid Width="225" Height="176" >
<Grid.RowDefinitions>
<RowDefinition Height="60"/>
<RowDefinition Height="50"/>
<RowDefinition Height="66"/>
</Grid.RowDefinitions>
<Border CornerRadius="8,8,0,0" Background="#454b59" Height="60" Width="225" Grid.Row="0" >
<Grid Width="225" Height="50">
<Label x:Name="lblName" Content="应急缓存区" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" Style="{DynamicResource FormLabelStyle}" />
</Grid>
</Border>
<ProgressBar x:Name="process" Value="50" Margin="0,1,0,0" Orientation="Vertical" Grid.Row="1" Grid.RowSpan="2" Background="Transparent" >
<ProgressBar.Foreground>
<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
<GradientStop Color="Black"/>
<GradientStop Color="#FF72F3E8" Offset="1"/>
<GradientStop Color="#FF6FF5EA"/>
</LinearGradientBrush>
</ProgressBar.Foreground>
</ProgressBar>
<Label Content="总量:" Width="62" Style="{DynamicResource searchLabel}" Grid.Column="0" Grid.Row="1" Margin="42,5,121,10"/>
<Label Content="100" x:Name="lblTotal" HorizontalAlignment="Left" Style="{DynamicResource searchLabel}" Grid.Row="1" Margin="124,4,0,11"/>
<Label Content="当前:" Width="62" Style="{DynamicResource searchLabel}" Grid.Column="0" Grid.Row="1" Margin="42,45,121,36" Grid.RowSpan="2"/>
<Label Content="50" x:Name="lblCurr" HorizontalAlignment="Left" VerticalAlignment="Top" Style="{DynamicResource searchLabel}" Grid.Row="1" Margin="124,45,0,0" Grid.RowSpan="2"/>
</Grid>
</Border>
</Canvas>
</UserControl>