-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWindow1.xaml
30 lines (28 loc) · 1.26 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
29
30
<dx:DXWindow x:Class="HighlightModifiedCells.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
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"
Title="How to highlight modified cells"
Height="500"
Width="400">
<dx:DXWindow.DataContext>
<local:ViewModel/>
</dx:DXWindow.DataContext>
<DockPanel>
<dxg:GridControl ItemsSource="{Binding Customers}" AutoGenerateColumns="AddNew">
<dxmvvm:Interaction.Behaviors>
<local:ChangedCellsHighlightBehavior HighlightBrush="LightPink"/>
</dxmvvm:Interaction.Behaviors>
<dxg:GridControl.Columns>
<dxg:GridColumn FieldName="ID"/>
<dxg:GridColumn FieldName="Name"/>
</dxg:GridControl.Columns>
<dxg:GridControl.View>
<dxg:TableView AutoWidth="True"/>
</dxg:GridControl.View>
</dxg:GridControl>
</DockPanel>
</dx:DXWindow>