TFLH/Views/TestBox.xaml
2026-08-06 09:50:46 +08:00

19 lines
1.1 KiB
XML

<UserControl x:Class="Views.TestBox"
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:Views"
mc:Ignorable="d"
d:DesignHeight="100" d:DesignWidth="100">
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="90*"></RowDefinition>
<RowDefinition Height="10*"></RowDefinition>
</Grid.RowDefinitions>
<Ellipse Style="{StaticResource LightCircle}" Fill="{Binding State.StatusBackground}"/>
<TextBlock Text="{Binding State.StatuInfo}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="Black"></TextBlock>
<TextBlock Grid.Row="1" Text="{Binding State.TestCount}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="Black" FontWeight="Bold"></TextBlock>
</Grid>
</UserControl>