-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
56 lines (53 loc) · 2.75 KB
/
Copy pathMainWindow.xaml
File metadata and controls
56 lines (53 loc) · 2.75 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<Window
x:Class="DXSample.MainWindow"
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:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
Title="MainWindow"
Width="525"
Height="350">
<Window.Resources>
<Style TargetType="dxdo:DocumentPanel">
<Setter Property="MDISize" Value="200,200" />
</Style>
</Window.Resources>
<DockPanel>
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal">
<Button Click="OnSaveClick">Save</Button>
<Button Click="OnRestoreClick">Restore</Button>
<Label>Layout Version:</Label>
<dxe:ComboBoxEdit EditValue="{Binding ElementName=dockLayoutManager, Path=(dx:DXSerializer.LayoutVersion), UpdateSourceTrigger=PropertyChanged}">
<sys:String>1.0</sys:String>
<sys:String>2.0</sys:String>
</dxe:ComboBoxEdit>
</StackPanel>
<dxdo:DockLayoutManager
x:Name="dockLayoutManager"
dx:DXSerializer.LayoutUpgrade="OnDockLayoutManagerLayoutUpgrade"
dx:DXSerializer.LayoutVersion="1.0"
dx:WorkspaceManager.IsEnabled="True">
<dxdo:LayoutGroup x:Name="root" Orientation="Vertical">
<dxdo:DocumentGroup x:Name="documentGroup1">
<dxdo:DocumentPanel x:Name="documentPanel1" Caption="Panel 1">
<dxg:GridControl
dx:DXSerializer.LayoutUpgrade="OnGridControlLayoutUpgrade"
dx:DXSerializer.LayoutVersion="{Binding RelativeSource={RelativeSource Self}, Path=(dxdo:DockLayoutManager.DockLayoutManager).(dx:DXSerializer.LayoutVersion)}"
dx:DXSerializer.SerializationID="grid1"
AutoGenerateColumns="AddNew"
ItemsSource="{Binding Items}" />
</dxdo:DocumentPanel>
<dxdo:DocumentPanel x:Name="documentPanel2" Caption="Panel 2">
<dxg:GridControl
dx:DXSerializer.SerializationID="grid2"
AutoGenerateColumns="AddNew"
ItemsSource="{Binding Items}" />
</dxdo:DocumentPanel>
</dxdo:DocumentGroup>
</dxdo:LayoutGroup>
</dxdo:DockLayoutManager>
</DockPanel>
</Window>