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>
|
||||
</desktop:ShowCaseItem>
|
||||
|
||||
<desktop:ShowCaseItem
|
||||
Title="Disabled"
|
||||
Description="Disabled checkbox.">
|
||||
<StackPanel HorizontalAlignment="Left" Spacing="10" Orientation="Vertical">
|
||||
<atom:CheckBox IsChecked="False" IsEnabled="False">UnChecked</atom:CheckBox>
|
||||
<atom:CheckBox IsChecked="{x:Null}" IsEnabled="False">Indeterminate</atom:CheckBox>
|
||||
<atom:CheckBox IsChecked="True" IsEnabled="False">Checked</atom:CheckBox>
|
||||
</StackPanel>
|
||||
</desktop:ShowCaseItem>
|
||||
|
||||
<desktop:ShowCaseItem
|
||||
Title="Controlled Checkbox"
|
||||
Description="Communicated with other components.">
|
||||
<StackPanel HorizontalAlignment="Left" Spacing="10" Orientation="Vertical">
|
||||
<atom:CheckBox IsChecked="{Binding ControlledCheckBoxCheckedStatus}"
|
||||
IsEnabled="{Binding ControlledCheckBoxEnabledStatus}"
|
||||
Command="{Binding CheckBoxHandler}"
|
||||
Content="{Binding ControlledCheckBoxText}" />
|
||||
<StackPanel Orientation="Horizontal" Spacing="10" Margin="0, 10, 0, 0">
|
||||
<atom:Button SizeType="Small" ButtonType="Primary"
|
||||
x:Name="CheckStatusBtn"
|
||||
Command="{Binding CheckStatusHandler}"
|
||||
CommandParameter="{Binding ElementName=CheckStatusBtn}"
|
||||
Text="{Binding CheckStatusBtnText}" />
|
||||
<atom:Button SizeType="Small" ButtonType="Primary"
|
||||
x:Name="EnableStatusBtn"
|
||||
CommandParameter="{Binding ElementName=EnableStatusBtn}"
|
||||
Command="{Binding EnableStatusHandler}"
|
||||
Text="{Binding EnableStatusBtnText}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</desktop:ShowCaseItem>
|
||||
|
||||
<desktop:ShowCaseItem
|
||||
Title="Checkbox Group"
|
||||
Description="Generate a group of checkboxes from an array.">
|
||||
<StackPanel HorizontalAlignment="Left" Spacing="10" Orientation="Vertical">
|
||||
<WrapPanel Margin="0, 0, 0, 10">
|
||||
<atom:CheckBox IsChecked="True">Apple</atom:CheckBox>
|
||||
<atom:CheckBox IsChecked="True">Pear</atom:CheckBox>
|
||||
<atom:CheckBox IsChecked="True">Orange</atom:CheckBox>
|
||||
</WrapPanel>
|
||||
<WrapPanel Margin="0, 0, 0, 10">
|
||||
<atom:CheckBox>Apple</atom:CheckBox>
|
||||
<atom:CheckBox IsChecked="True">Pear</atom:CheckBox>
|
||||
<atom:CheckBox>Orange</atom:CheckBox>
|
||||
</WrapPanel>
|
||||
<WrapPanel Margin="0, 0, 0, 10">
|
||||
<atom:CheckBox IsChecked="True" IsEnabled="False">Apple</atom:CheckBox>
|
||||
<atom:CheckBox IsEnabled="False">Pear</atom:CheckBox>
|
||||
<atom:CheckBox IsEnabled="False">Orange</atom:CheckBox>
|
||||
</WrapPanel>
|
||||
</StackPanel>
|
||||
</desktop:ShowCaseItem>
|
||||
|
||||
|
||||
<desktop:ShowCaseItem
|
||||
Title="Check all"
|
||||
Description="The indeterminate property can help you to achieve a 'check all' effect.">
|
||||
<StackPanel Orientation="Vertical" HorizontalAlignment="Left" Spacing="10">
|
||||
<StackPanel>
|
||||
<atom:CheckBox IsChecked="{Binding CheckedAllStatus}"
|
||||
Command="{Binding CheckedAllStatusHandler}">
|
||||
Check all
|
||||
</atom:CheckBox>
|
||||
</StackPanel>
|
||||
<WrapPanel Margin="0, 20, 0, 0">
|
||||
<atom:CheckBox x:Name="AppleCheckBox"
|
||||
IsChecked="{Binding AppleCheckedStatus}"
|
||||
Command="{Binding CheckedItemStatusHandler}"
|
||||
CommandParameter="{Binding ElementName=AppleCheckBox}">
|
||||
Apple
|
||||
</atom:CheckBox>
|
||||
<atom:CheckBox x:Name="PearCheckBox"
|
||||
IsChecked="{Binding PearCheckedStatus}"
|
||||
Command="{Binding CheckedItemStatusHandler}"
|
||||
CommandParameter="{Binding ElementName=PearCheckBox}">
|
||||
Pear
|
||||
</atom:CheckBox>
|
||||
<atom:CheckBox x:Name="OrangeCheckBox"
|
||||
IsChecked="{Binding OrangeCheckedStatus}"
|
||||
Command="{Binding CheckedItemStatusHandler}"
|
||||
CommandParameter="{Binding ElementName=OrangeCheckBox}">
|
||||
Orange
|
||||
</atom:CheckBox>
|
||||
</WrapPanel>
|
||||
</StackPanel>
|
||||
</desktop:ShowCaseItem>
|
||||
|
||||
<desktop:ShowCaseItem
|
||||
Title="Use with Grid"
|
||||
Description="We can use Checkbox and Grid in Checkbox.Group, to implement complex layout.">
|
||||
<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="1">B</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="1">D</atom:CheckBox>
|
||||
</Grid>
|
||||
</desktop:ShowCaseItem>
|
||||
<!-- <desktop:ShowCaseItem -->
|
||||
<!-- Title="Disabled" -->
|
||||
<!-- Description="Disabled checkbox."> -->
|
||||
<!-- <StackPanel HorizontalAlignment="Left" Spacing="10" Orientation="Vertical"> -->
|
||||
<!-- <atom:CheckBox IsChecked="False" IsEnabled="False">UnChecked</atom:CheckBox> -->
|
||||
<!-- <atom:CheckBox IsChecked="{x:Null}" IsEnabled="False">Indeterminate</atom:CheckBox> -->
|
||||
<!-- <atom:CheckBox IsChecked="True" IsEnabled="False">Checked</atom:CheckBox> -->
|
||||
<!-- </StackPanel> -->
|
||||
<!-- </desktop:ShowCaseItem> -->
|
||||
<!-- -->
|
||||
<!-- <desktop:ShowCaseItem -->
|
||||
<!-- Title="Controlled Checkbox" -->
|
||||
<!-- Description="Communicated with other components."> -->
|
||||
<!-- <StackPanel HorizontalAlignment="Left" Spacing="10" Orientation="Vertical"> -->
|
||||
<!-- <atom:CheckBox IsChecked="{Binding ControlledCheckBoxCheckedStatus}" -->
|
||||
<!-- IsEnabled="{Binding ControlledCheckBoxEnabledStatus}" -->
|
||||
<!-- Command="{Binding CheckBoxHandler}" -->
|
||||
<!-- Content="{Binding ControlledCheckBoxText}" /> -->
|
||||
<!-- <StackPanel Orientation="Horizontal" Spacing="10" Margin="0, 10, 0, 0"> -->
|
||||
<!-- <atom:Button SizeType="Small" ButtonType="Primary" -->
|
||||
<!-- x:Name="CheckStatusBtn" -->
|
||||
<!-- Command="{Binding CheckStatusHandler}" -->
|
||||
<!-- CommandParameter="{Binding ElementName=CheckStatusBtn}" -->
|
||||
<!-- Text="{Binding CheckStatusBtnText}" /> -->
|
||||
<!-- <atom:Button SizeType="Small" ButtonType="Primary" -->
|
||||
<!-- x:Name="EnableStatusBtn" -->
|
||||
<!-- CommandParameter="{Binding ElementName=EnableStatusBtn}" -->
|
||||
<!-- Command="{Binding EnableStatusHandler}" -->
|
||||
<!-- Text="{Binding EnableStatusBtnText}" /> -->
|
||||
<!-- </StackPanel> -->
|
||||
<!-- </StackPanel> -->
|
||||
<!-- </desktop:ShowCaseItem> -->
|
||||
<!-- -->
|
||||
<!-- <desktop:ShowCaseItem -->
|
||||
<!-- Title="Checkbox Group" -->
|
||||
<!-- Description="Generate a group of checkboxes from an array."> -->
|
||||
<!-- <StackPanel HorizontalAlignment="Left" Spacing="10" Orientation="Vertical"> -->
|
||||
<!-- <WrapPanel Margin="0, 0, 0, 10"> -->
|
||||
<!-- <atom:CheckBox IsChecked="True">Apple</atom:CheckBox> -->
|
||||
<!-- <atom:CheckBox IsChecked="True">Pear</atom:CheckBox> -->
|
||||
<!-- <atom:CheckBox IsChecked="True">Orange</atom:CheckBox> -->
|
||||
<!-- </WrapPanel> -->
|
||||
<!-- <WrapPanel Margin="0, 0, 0, 10"> -->
|
||||
<!-- <atom:CheckBox>Apple</atom:CheckBox> -->
|
||||
<!-- <atom:CheckBox IsChecked="True">Pear</atom:CheckBox> -->
|
||||
<!-- <atom:CheckBox>Orange</atom:CheckBox> -->
|
||||
<!-- </WrapPanel> -->
|
||||
<!-- <WrapPanel Margin="0, 0, 0, 10"> -->
|
||||
<!-- <atom:CheckBox IsChecked="True" IsEnabled="False">Apple</atom:CheckBox> -->
|
||||
<!-- <atom:CheckBox IsEnabled="False">Pear</atom:CheckBox> -->
|
||||
<!-- <atom:CheckBox IsEnabled="False">Orange</atom:CheckBox> -->
|
||||
<!-- </WrapPanel> -->
|
||||
<!-- </StackPanel> -->
|
||||
<!-- </desktop:ShowCaseItem> -->
|
||||
<!-- -->
|
||||
<!-- -->
|
||||
<!-- <desktop:ShowCaseItem -->
|
||||
<!-- Title="Check all" -->
|
||||
<!-- Description="The indeterminate property can help you to achieve a 'check all' effect."> -->
|
||||
<!-- <StackPanel Orientation="Vertical" HorizontalAlignment="Left" Spacing="10"> -->
|
||||
<!-- <StackPanel> -->
|
||||
<!-- <atom:CheckBox IsChecked="{Binding CheckedAllStatus}" -->
|
||||
<!-- Command="{Binding CheckedAllStatusHandler}"> -->
|
||||
<!-- Check all -->
|
||||
<!-- </atom:CheckBox> -->
|
||||
<!-- </StackPanel> -->
|
||||
<!-- <WrapPanel Margin="0, 20, 0, 0"> -->
|
||||
<!-- <atom:CheckBox x:Name="AppleCheckBox" -->
|
||||
<!-- IsChecked="{Binding AppleCheckedStatus}" -->
|
||||
<!-- Command="{Binding CheckedItemStatusHandler}" -->
|
||||
<!-- CommandParameter="{Binding ElementName=AppleCheckBox}"> -->
|
||||
<!-- Apple -->
|
||||
<!-- </atom:CheckBox> -->
|
||||
<!-- <atom:CheckBox x:Name="PearCheckBox" -->
|
||||
<!-- IsChecked="{Binding PearCheckedStatus}" -->
|
||||
<!-- Command="{Binding CheckedItemStatusHandler}" -->
|
||||
<!-- CommandParameter="{Binding ElementName=PearCheckBox}"> -->
|
||||
<!-- Pear -->
|
||||
<!-- </atom:CheckBox> -->
|
||||
<!-- <atom:CheckBox x:Name="OrangeCheckBox" -->
|
||||
<!-- IsChecked="{Binding OrangeCheckedStatus}" -->
|
||||
<!-- Command="{Binding CheckedItemStatusHandler}" -->
|
||||
<!-- CommandParameter="{Binding ElementName=OrangeCheckBox}"> -->
|
||||
<!-- Orange -->
|
||||
<!-- </atom:CheckBox> -->
|
||||
<!-- </WrapPanel> -->
|
||||
<!-- </StackPanel> -->
|
||||
<!-- </desktop:ShowCaseItem> -->
|
||||
<!-- -->
|
||||
<!-- <desktop:ShowCaseItem -->
|
||||
<!-- Title="Use with Grid" -->
|
||||
<!-- Description="We can use Checkbox and Grid in Checkbox.Group, to implement complex layout."> -->
|
||||
<!-- <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="1">B</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="1">D</atom:CheckBox> -->
|
||||
<!-- </Grid> -->
|
||||
<!-- </desktop:ShowCaseItem> -->
|
||||
</desktop:ShowCasePanel>
|
||||
</UserControl>
|
Loading…
Reference in New Issue
Block a user