-
Notifications
You must be signed in to change notification settings - Fork 0
/
Window1.xaml
28 lines (28 loc) · 1.36 KB
/
Window1.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
<Window x:Class="ComboBoxEdit_CreatingCheckedComboBox.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:local="clr-namespace:ComboBoxEdit_CreatingCheckedComboBox"
xmlns:localVM="clr-namespace:ComboBoxEdit_CreatingCheckedComboBox.ViewModels"
Title="Checked ComboBox"
Height="200"
Width="350">
<Window.DataContext>
<localVM:MyViewModel />
</Window.DataContext>
<DockPanel>
<dxe:ComboBoxEdit DockPanel.Dock="Top"
Margin="10,0,10,0"
SeparatorString="; "
DisplayMember="Name"
EditValue="{Binding SelectedCustomers, Converter={local:SelectedItemsConverter}, UpdateSourceTrigger=PropertyChanged}"
ItemsSource="{Binding Customers}">
<dxe:ComboBoxEdit.StyleSettings>
<dxe:CheckedComboBoxStyleSettings />
</dxe:ComboBoxEdit.StyleSettings>
</dxe:ComboBoxEdit>
<dxe:ListBoxEdit Margin="10,10,10,10"
DisplayMember="Name"
ItemsSource="{Binding SelectedCustomers}" />
</DockPanel>
</Window>