mirror of
https://gitee.com/chinware/atomui.git
synced 2024-11-29 18:38:16 +08:00
Merge branch 'develop' of https://gitee.com/chinware/atomui into develop
This commit is contained in:
commit
cc4a5853a7
@ -21,105 +21,105 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
</desktop:ShowCaseItem>
|
</desktop:ShowCaseItem>
|
||||||
|
|
||||||
<desktop:ShowCaseItem
|
<!-- <desktop:ShowCaseItem -->
|
||||||
Title="Disabled"
|
<!-- Title="Disabled" -->
|
||||||
Description="Disabled checkbox.">
|
<!-- Description="Disabled checkbox."> -->
|
||||||
<StackPanel HorizontalAlignment="Left" Spacing="10" Orientation="Vertical">
|
<!-- <StackPanel HorizontalAlignment="Left" Spacing="10" Orientation="Vertical"> -->
|
||||||
<atom:CheckBox IsChecked="False" IsEnabled="False">UnChecked</atom:CheckBox>
|
<!-- <atom:CheckBox IsChecked="False" IsEnabled="False">UnChecked</atom:CheckBox> -->
|
||||||
<atom:CheckBox IsChecked="{x:Null}" IsEnabled="False">Indeterminate</atom:CheckBox>
|
<!-- <atom:CheckBox IsChecked="{x:Null}" IsEnabled="False">Indeterminate</atom:CheckBox> -->
|
||||||
<atom:CheckBox IsChecked="True" IsEnabled="False">Checked</atom:CheckBox>
|
<!-- <atom:CheckBox IsChecked="True" IsEnabled="False">Checked</atom:CheckBox> -->
|
||||||
</StackPanel>
|
<!-- </StackPanel> -->
|
||||||
</desktop:ShowCaseItem>
|
<!-- </desktop:ShowCaseItem> -->
|
||||||
|
<!-- -->
|
||||||
<desktop:ShowCaseItem
|
<!-- <desktop:ShowCaseItem -->
|
||||||
Title="Controlled Checkbox"
|
<!-- Title="Controlled Checkbox" -->
|
||||||
Description="Communicated with other components.">
|
<!-- Description="Communicated with other components."> -->
|
||||||
<StackPanel HorizontalAlignment="Left" Spacing="10" Orientation="Vertical">
|
<!-- <StackPanel HorizontalAlignment="Left" Spacing="10" Orientation="Vertical"> -->
|
||||||
<atom:CheckBox IsChecked="{Binding ControlledCheckBoxCheckedStatus}"
|
<!-- <atom:CheckBox IsChecked="{Binding ControlledCheckBoxCheckedStatus}" -->
|
||||||
IsEnabled="{Binding ControlledCheckBoxEnabledStatus}"
|
<!-- IsEnabled="{Binding ControlledCheckBoxEnabledStatus}" -->
|
||||||
Command="{Binding CheckBoxHandler}"
|
<!-- Command="{Binding CheckBoxHandler}" -->
|
||||||
Content="{Binding ControlledCheckBoxText}" />
|
<!-- Content="{Binding ControlledCheckBoxText}" /> -->
|
||||||
<StackPanel Orientation="Horizontal" Spacing="10" Margin="0, 10, 0, 0">
|
<!-- <StackPanel Orientation="Horizontal" Spacing="10" Margin="0, 10, 0, 0"> -->
|
||||||
<atom:Button SizeType="Small" ButtonType="Primary"
|
<!-- <atom:Button SizeType="Small" ButtonType="Primary" -->
|
||||||
x:Name="CheckStatusBtn"
|
<!-- x:Name="CheckStatusBtn" -->
|
||||||
Command="{Binding CheckStatusHandler}"
|
<!-- Command="{Binding CheckStatusHandler}" -->
|
||||||
CommandParameter="{Binding ElementName=CheckStatusBtn}"
|
<!-- CommandParameter="{Binding ElementName=CheckStatusBtn}" -->
|
||||||
Text="{Binding CheckStatusBtnText}" />
|
<!-- Text="{Binding CheckStatusBtnText}" /> -->
|
||||||
<atom:Button SizeType="Small" ButtonType="Primary"
|
<!-- <atom:Button SizeType="Small" ButtonType="Primary" -->
|
||||||
x:Name="EnableStatusBtn"
|
<!-- x:Name="EnableStatusBtn" -->
|
||||||
CommandParameter="{Binding ElementName=EnableStatusBtn}"
|
<!-- CommandParameter="{Binding ElementName=EnableStatusBtn}" -->
|
||||||
Command="{Binding EnableStatusHandler}"
|
<!-- Command="{Binding EnableStatusHandler}" -->
|
||||||
Text="{Binding EnableStatusBtnText}" />
|
<!-- Text="{Binding EnableStatusBtnText}" /> -->
|
||||||
</StackPanel>
|
<!-- </StackPanel> -->
|
||||||
</StackPanel>
|
<!-- </StackPanel> -->
|
||||||
</desktop:ShowCaseItem>
|
<!-- </desktop:ShowCaseItem> -->
|
||||||
|
<!-- -->
|
||||||
<desktop:ShowCaseItem
|
<!-- <desktop:ShowCaseItem -->
|
||||||
Title="Checkbox Group"
|
<!-- Title="Checkbox Group" -->
|
||||||
Description="Generate a group of checkboxes from an array.">
|
<!-- Description="Generate a group of checkboxes from an array."> -->
|
||||||
<StackPanel HorizontalAlignment="Left" Spacing="10" Orientation="Vertical">
|
<!-- <StackPanel HorizontalAlignment="Left" Spacing="10" Orientation="Vertical"> -->
|
||||||
<WrapPanel Margin="0, 0, 0, 10">
|
<!-- <WrapPanel Margin="0, 0, 0, 10"> -->
|
||||||
<atom:CheckBox IsChecked="True">Apple</atom:CheckBox>
|
<!-- <atom:CheckBox IsChecked="True">Apple</atom:CheckBox> -->
|
||||||
<atom:CheckBox IsChecked="True">Pear</atom:CheckBox>
|
<!-- <atom:CheckBox IsChecked="True">Pear</atom:CheckBox> -->
|
||||||
<atom:CheckBox IsChecked="True">Orange</atom:CheckBox>
|
<!-- <atom:CheckBox IsChecked="True">Orange</atom:CheckBox> -->
|
||||||
</WrapPanel>
|
<!-- </WrapPanel> -->
|
||||||
<WrapPanel Margin="0, 0, 0, 10">
|
<!-- <WrapPanel Margin="0, 0, 0, 10"> -->
|
||||||
<atom:CheckBox>Apple</atom:CheckBox>
|
<!-- <atom:CheckBox>Apple</atom:CheckBox> -->
|
||||||
<atom:CheckBox IsChecked="True">Pear</atom:CheckBox>
|
<!-- <atom:CheckBox IsChecked="True">Pear</atom:CheckBox> -->
|
||||||
<atom:CheckBox>Orange</atom:CheckBox>
|
<!-- <atom:CheckBox>Orange</atom:CheckBox> -->
|
||||||
</WrapPanel>
|
<!-- </WrapPanel> -->
|
||||||
<WrapPanel Margin="0, 0, 0, 10">
|
<!-- <WrapPanel Margin="0, 0, 0, 10"> -->
|
||||||
<atom:CheckBox IsChecked="True" IsEnabled="False">Apple</atom:CheckBox>
|
<!-- <atom:CheckBox IsChecked="True" IsEnabled="False">Apple</atom:CheckBox> -->
|
||||||
<atom:CheckBox IsEnabled="False">Pear</atom:CheckBox>
|
<!-- <atom:CheckBox IsEnabled="False">Pear</atom:CheckBox> -->
|
||||||
<atom:CheckBox IsEnabled="False">Orange</atom:CheckBox>
|
<!-- <atom:CheckBox IsEnabled="False">Orange</atom:CheckBox> -->
|
||||||
</WrapPanel>
|
<!-- </WrapPanel> -->
|
||||||
</StackPanel>
|
<!-- </StackPanel> -->
|
||||||
</desktop:ShowCaseItem>
|
<!-- </desktop:ShowCaseItem> -->
|
||||||
|
<!-- -->
|
||||||
|
<!-- -->
|
||||||
<desktop:ShowCaseItem
|
<!-- <desktop:ShowCaseItem -->
|
||||||
Title="Check all"
|
<!-- Title="Check all" -->
|
||||||
Description="The indeterminate property can help you to achieve a 'check all' effect.">
|
<!-- Description="The indeterminate property can help you to achieve a 'check all' effect."> -->
|
||||||
<StackPanel Orientation="Vertical" HorizontalAlignment="Left" Spacing="10">
|
<!-- <StackPanel Orientation="Vertical" HorizontalAlignment="Left" Spacing="10"> -->
|
||||||
<StackPanel>
|
<!-- <StackPanel> -->
|
||||||
<atom:CheckBox IsChecked="{Binding CheckedAllStatus}"
|
<!-- <atom:CheckBox IsChecked="{Binding CheckedAllStatus}" -->
|
||||||
Command="{Binding CheckedAllStatusHandler}">
|
<!-- Command="{Binding CheckedAllStatusHandler}"> -->
|
||||||
Check all
|
<!-- Check all -->
|
||||||
</atom:CheckBox>
|
<!-- </atom:CheckBox> -->
|
||||||
</StackPanel>
|
<!-- </StackPanel> -->
|
||||||
<WrapPanel Margin="0, 20, 0, 0">
|
<!-- <WrapPanel Margin="0, 20, 0, 0"> -->
|
||||||
<atom:CheckBox x:Name="AppleCheckBox"
|
<!-- <atom:CheckBox x:Name="AppleCheckBox" -->
|
||||||
IsChecked="{Binding AppleCheckedStatus}"
|
<!-- IsChecked="{Binding AppleCheckedStatus}" -->
|
||||||
Command="{Binding CheckedItemStatusHandler}"
|
<!-- Command="{Binding CheckedItemStatusHandler}" -->
|
||||||
CommandParameter="{Binding ElementName=AppleCheckBox}">
|
<!-- CommandParameter="{Binding ElementName=AppleCheckBox}"> -->
|
||||||
Apple
|
<!-- Apple -->
|
||||||
</atom:CheckBox>
|
<!-- </atom:CheckBox> -->
|
||||||
<atom:CheckBox x:Name="PearCheckBox"
|
<!-- <atom:CheckBox x:Name="PearCheckBox" -->
|
||||||
IsChecked="{Binding PearCheckedStatus}"
|
<!-- IsChecked="{Binding PearCheckedStatus}" -->
|
||||||
Command="{Binding CheckedItemStatusHandler}"
|
<!-- Command="{Binding CheckedItemStatusHandler}" -->
|
||||||
CommandParameter="{Binding ElementName=PearCheckBox}">
|
<!-- CommandParameter="{Binding ElementName=PearCheckBox}"> -->
|
||||||
Pear
|
<!-- Pear -->
|
||||||
</atom:CheckBox>
|
<!-- </atom:CheckBox> -->
|
||||||
<atom:CheckBox x:Name="OrangeCheckBox"
|
<!-- <atom:CheckBox x:Name="OrangeCheckBox" -->
|
||||||
IsChecked="{Binding OrangeCheckedStatus}"
|
<!-- IsChecked="{Binding OrangeCheckedStatus}" -->
|
||||||
Command="{Binding CheckedItemStatusHandler}"
|
<!-- Command="{Binding CheckedItemStatusHandler}" -->
|
||||||
CommandParameter="{Binding ElementName=OrangeCheckBox}">
|
<!-- CommandParameter="{Binding ElementName=OrangeCheckBox}"> -->
|
||||||
Orange
|
<!-- Orange -->
|
||||||
</atom:CheckBox>
|
<!-- </atom:CheckBox> -->
|
||||||
</WrapPanel>
|
<!-- </WrapPanel> -->
|
||||||
</StackPanel>
|
<!-- </StackPanel> -->
|
||||||
</desktop:ShowCaseItem>
|
<!-- </desktop:ShowCaseItem> -->
|
||||||
|
<!-- -->
|
||||||
<desktop:ShowCaseItem
|
<!-- <desktop:ShowCaseItem -->
|
||||||
Title="Use with Grid"
|
<!-- Title="Use with Grid" -->
|
||||||
Description="We can use Checkbox and Grid in Checkbox.Group, to implement complex layout.">
|
<!-- Description="We can use Checkbox and Grid in Checkbox.Group, to implement complex layout."> -->
|
||||||
<Grid ColumnDefinitions="*,*,*" RowDefinitions="Auto,Auto,Auto" Margin="10">
|
<!-- <Grid ColumnDefinitions="*,*,*" RowDefinitions="Auto,Auto,Auto" Margin="10"> -->
|
||||||
<atom:CheckBox Grid.Row="0" Grid.Column="0">A</atom:CheckBox>
|
<!-- <atom:CheckBox Grid.Row="0" Grid.Column="0">A</atom:CheckBox> -->
|
||||||
<atom:CheckBox Grid.Row="0" Grid.Column="1">B</atom:CheckBox>
|
<!-- <atom:CheckBox Grid.Row="0" Grid.Column="1">B</atom:CheckBox> -->
|
||||||
<atom:CheckBox Grid.Row="0" Grid.Column="2">C</atom:CheckBox>
|
<!-- <atom:CheckBox Grid.Row="0" Grid.Column="2">C</atom:CheckBox> -->
|
||||||
<atom:CheckBox Grid.Row="1" Grid.Column="0">D</atom:CheckBox>
|
<!-- <atom:CheckBox Grid.Row="1" Grid.Column="0">D</atom:CheckBox> -->
|
||||||
<atom:CheckBox Grid.Row="1" Grid.Column="1">D</atom:CheckBox>
|
<!-- <atom:CheckBox Grid.Row="1" Grid.Column="1">D</atom:CheckBox> -->
|
||||||
</Grid>
|
<!-- </Grid> -->
|
||||||
</desktop:ShowCaseItem>
|
<!-- </desktop:ShowCaseItem> -->
|
||||||
</desktop:ShowCasePanel>
|
</desktop:ShowCasePanel>
|
||||||
</UserControl>
|
</UserControl>
|
Loading…
Reference in New Issue
Block a user