mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-30 21:23:23 +08:00
feat: add SimpleCheckBox theme.
This commit is contained in:
@@ -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}">
|
||||
|
||||
Reference in New Issue
Block a user