-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
25 lines (25 loc) · 1.19 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
<Window x:Class="WPFGridMVVMSelection.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:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
xmlns:local="clr-namespace:WPFGridMVVMSelection"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Window.DataContext>
<local:CustomersViewModel/>
</Window.DataContext>
<DockPanel>
<Button Command="{Binding DeleteSelectedRowsCommand}" Content="Delete Selected Rows" DockPanel.Dock="Bottom"/>
<dxg:GridControl Name="grid"
AutoGenerateColumns="AddNew"
ItemsSource="{Binding Customers}"
SelectionMode="Row"
SelectedItems="{Binding Selection}">
<dxg:GridControl.View>
<dxg:TableView Name="view"/>
</dxg:GridControl.View>
</dxg:GridControl>
</DockPanel>
</Window>