1234567891011121314151617181920212223242526272829303132 |
- <Window x:Class="Test.ListView.WinListView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:Test.ListView"
- xmlns:fw="http://schemas.FWind/xaml"
- mc:Ignorable="d"
- Title="WinListView" Height="450" Width="800">
-
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="30"></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition Height="30"></RowDefinition>
- </Grid.RowDefinitions>
-
- <ListBox Grid.Row="1" Name="List" >
- <CheckBox Content="dadad"></CheckBox>
- <CheckBox Content="一批"></CheckBox>
- <CheckBox Content="dasda"></CheckBox>
- <CheckBox Content="三匹"></CheckBox>
- <CheckBox Content="cc"></CheckBox>
- </ListBox>
- <StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right">
- <Button Content="Ceshi" Margin="20,0" Width="60" VerticalAlignment="Center" Click="Button_Click"></Button>
- <Button fw:ButtonOptions.SelectType="All" fw:ButtonOptions.CheckBoxContainer="{Binding ElementName=List}" Content="全选" Margin="20,0" Width="60" VerticalAlignment="Center"></Button>
- <Button fw:ButtonOptions.SelectType="None" fw:ButtonOptions.CheckBoxContainer="{Binding ElementName=List}" Content="全不选" Margin="20,0" Width="60" VerticalAlignment="Center"></Button>
- <Button fw:ButtonOptions.SelectType="Inverse" fw:ButtonOptions.CheckBoxContainer="{Binding ElementName=List}" Content="反选" Margin="20,0" Width="60" VerticalAlignment="Center"></Button>
- </StackPanel>
- </Grid>
- </Window>
|