-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
36 lines (35 loc) · 1.82 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
<Window x:Class="dxExample.MainWindow"
Title="MainWindow" Height="350" Width="850"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:VGrid="clr-namespace:dxExample.VGrid">
<Window.Resources>
<ResourceDictionary>
<DataTemplate x:Key="dateCellTemplate">
<dxe:DateEdit Name="PART_Editor"/>
</DataTemplate>
<DataTemplate x:Key="boolCellTemplate">
<dxe:CheckEdit Name="PART_Editor"/>
</DataTemplate>
<DataTemplate x:Key="intCellTemplate">
<dxe:TextEdit Name="PART_Editor" MaskType="Numeric" Mask="d"/>
</DataTemplate>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="VGrid/VerticalGridControlResources.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<Grid>
<VGrid:VerticalGridControl x:Name="grid" Margin="2"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
ItemsSource="{Binding Orders}"
AutoPopulateRows="True">
<VGrid:VerticalGridControl.Rows>
<VGrid:VerticalRow RowName="Date" CellTemplate="{StaticResource dateCellTemplate}"/>
<VGrid:VerticalRow RowName="HasFlag" CellTemplate="{StaticResource boolCellTemplate}"/>
<VGrid:VerticalRow RowName="Id" CellTemplate="{StaticResource intCellTemplate}"/>
</VGrid:VerticalGridControl.Rows>
</VGrid:VerticalGridControl>
</Grid>
</Window>