WinListView.xaml 1.9 KB

1234567891011121314151617181920212223242526272829303132
  1. <Window x:Class="Test.ListView.WinListView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:Test.ListView"
  7. xmlns:fw="http://schemas.FWind/xaml"
  8. mc:Ignorable="d"
  9. Title="WinListView" Height="450" Width="800">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="30"></RowDefinition>
  13. <RowDefinition></RowDefinition>
  14. <RowDefinition Height="30"></RowDefinition>
  15. </Grid.RowDefinitions>
  16. <ListBox Grid.Row="1" Name="List" >
  17. <CheckBox Content="dadad"></CheckBox>
  18. <CheckBox Content="一批"></CheckBox>
  19. <CheckBox Content="dasda"></CheckBox>
  20. <CheckBox Content="三匹"></CheckBox>
  21. <CheckBox Content="cc"></CheckBox>
  22. </ListBox>
  23. <StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right">
  24. <Button Content="Ceshi" Margin="20,0" Width="60" VerticalAlignment="Center" Click="Button_Click"></Button>
  25. <Button fw:ButtonOptions.SelectType="All" fw:ButtonOptions.CheckBoxContainer="{Binding ElementName=List}" Content="全选" Margin="20,0" Width="60" VerticalAlignment="Center"></Button>
  26. <Button fw:ButtonOptions.SelectType="None" fw:ButtonOptions.CheckBoxContainer="{Binding ElementName=List}" Content="全不选" Margin="20,0" Width="60" VerticalAlignment="Center"></Button>
  27. <Button fw:ButtonOptions.SelectType="Inverse" fw:ButtonOptions.CheckBoxContainer="{Binding ElementName=List}" Content="反选" Margin="20,0" Width="60" VerticalAlignment="Center"></Button>
  28. </StackPanel>
  29. </Grid>
  30. </Window>