feat: add SimpleCheckBox theme.

This commit is contained in:
Zhang Dian
2023-06-06 16:43:45 +08:00
parent 5021ac683b
commit 43b0f5b044
2 changed files with 164 additions and 1 deletions

View File

@@ -8,10 +8,12 @@
d:DesignWidth="800"
mc:Ignorable="d">
<ScrollViewer HorizontalScrollBarVisibility="Auto">
<StackPanel HorizontalAlignment="Left">
<StackPanel HorizontalAlignment="Left" Spacing="20">
<StackPanel Orientation="Horizontal">
<CheckBox BorderThickness="10" BorderBrush="Gray" Background="LightBlue">Border</CheckBox>
<CheckBox BorderThickness="10" BorderBrush="Gray" Background="LightBlue" />
<CheckBox Theme="{StaticResource SimpleCheckBox}" IsThreeState="True" BorderThickness="10"
BorderBrush="Gray" Background="LightBlue" />
</StackPanel>
<TextBlock Text="CheckBox" />
<StackPanel Orientation="Horizontal">
@@ -30,6 +32,18 @@
</CheckBox>
</StackPanel>
<CheckBox Width="120" HorizontalAlignment="Left">Checkbox should wrap its text</CheckBox>
<TextBlock Text="SimpleCheckBox" />
<StackPanel Orientation="Horizontal">
<CheckBox Theme="{StaticResource SimpleCheckBox}" />
<CheckBox Theme="{StaticResource SimpleCheckBox}" IsChecked="True" />
<CheckBox Theme="{StaticResource SimpleCheckBox}" IsChecked="{x:Null}" IsThreeState="True" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<CheckBox Theme="{StaticResource SimpleCheckBox}" IsEnabled="False" />
<CheckBox Theme="{StaticResource SimpleCheckBox}" IsEnabled="False" IsChecked="True" />
<CheckBox Theme="{StaticResource SimpleCheckBox}" IsEnabled="False" IsChecked="{x:Null}"
IsThreeState="True" />
</StackPanel>
<TextBlock Margin="0,16" Text="CardCheckBox" />
<StackPanel Orientation="Horizontal">
<CheckBox Width="300" Theme="{DynamicResource CardCheckBox}">