-
Notifications
You must be signed in to change notification settings - Fork 5
/
MainWindow.xaml
70 lines (67 loc) · 3.02 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<Window x:Class="Grouping.MainWindow"
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:Grouping"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
mc:Ignorable="d" WindowStartupLocation="CenterScreen"
Title="Grouping" Height="650" Width="750">
<Window.DataContext>
<local:ViewModel></local:ViewModel>
</Window.DataContext>
<Grid x:Name="LayoutRoot"
Background="White"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="0.8*"/>
</Grid.ColumnDefinitions>
<Border Margin="0"
Grid.Row="1">
<Grid>
<syncfusion:CheckListBox ItemsSource="{Binding Vegetables}"
SelectedItems="{Binding CheckedItems}"
DisplayMemberPath="Name"
Name="checkListBox"
Width="300"
Height="400">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Loaded">
<i:InvokeCommandAction Command="{Binding LoadedCommand}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</syncfusion:CheckListBox>
</Grid>
</Border>
<GroupBox HorizontalAlignment="Center"
VerticalAlignment="Center"
Margin="0,0,3,3"
FontSize="14"
FontFamily="Segoe UI"
Grid.Column="1"
BorderBrush="Silver"
Header="Group by">
<Grid HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Margin="5">
<ComboBox Name="combo"
SelectedIndex="0"
ItemsSource="{Binding PropertyNames}"
FontFamily="Segoe UI"
FontSize="13"
Width="200"
Height="30" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectionChanged">
<i:InvokeCommandAction Command="{Binding SelectionChangedCommand}"
CommandParameter="{Binding ElementName=combo}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</ComboBox>
</Grid>
</GroupBox>
</Grid>
</Window>