/
MainWindow.xaml
35 lines (34 loc) · 1.41 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
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:dxSampleGrid"
xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking"
x:Class="dxSampleGrid.MainWindow"
Title="DXApplication" Height="700" Width="1100"
SnapsToDevicePixels="True" UseLayoutRounding="True"
>
<Grid>
<Grid.Resources>
<Style TargetType="dxdo:LayoutPanel">
<Setter Property="Caption" Value="{Binding LastName}"/>
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<Label Content="{Binding Age}"/>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</Grid.Resources>
<dxdo:DockLayoutManager ItemsSource="{Binding PersonList}">
<dxdo:MVVMHelper.LayoutAdapter>
<local:MyLayoutAdapter/>
</dxdo:MVVMHelper.LayoutAdapter>
<dxdo:DockLayoutManager.LayoutRoot>
<dxdo:LayoutGroup x:Name="LayoutGroup1">
<dxdo:TabbedGroup x:Name="TabbedGroup1"/>
</dxdo:LayoutGroup>
</dxdo:DockLayoutManager.LayoutRoot>
</dxdo:DockLayoutManager>
</Grid>
</Window>