-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathWindow1.xaml
23 lines (21 loc) · 980 Bytes
/
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
<Window x:Class="HighlightModifiedCells.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
xmlns:local="clr-namespace:HighlightModifiedCells"
Height="500" Width="400">
<Window.DataContext>
<local:ViewModel/>
</Window.DataContext>
<DockPanel>
<dxg:GridControl ItemsSource="{Binding Customers}" AutoGenerateColumns="AddNew">
<dxmvvm:Interaction.Behaviors>
<local:ChangedCellsHighlightBehavior HighlightBrush="LightPink"/>
</dxmvvm:Interaction.Behaviors>
<dxg:GridControl.View>
<dxg:TableView AutoWidth="True"/>
</dxg:GridControl.View>
</dxg:GridControl>
</DockPanel>
</Window>