-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
56 lines (56 loc) · 3.55 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<dxr:DXRibbonWindow
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking"
xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
x:Class="WpfApplication1.MainWindow"
Title="MainWindow" Height="768" Width="1024" dx:ThemeManager.ThemeName="Office2013LightGray">
<Grid>
<DockPanel>
<dxb:MainMenuControl Caption="File" DockPanel.Dock="Top">
<dxb:MainMenuControl.Items>
<dxb:BarButtonItem Content="MDI" ItemClick="biMDI_ItemClick" MergeOrder="3"/>
<dxb:BarButtonItem Content="Tabbed" ItemClick="biTabbed_ItemClick" MergeOrder="4"/>
</dxb:MainMenuControl.Items>
</dxb:MainMenuControl>
<Grid>
<dxdo:DockLayoutManager x:Name="dlManager">
<dxdo:LayoutGroup>
<dxdo:DocumentGroup x:Name="ChildDocumentGroup" MDIStyle="Tabbed" DestroyOnClosingChildren="False">
<dxdo:DocumentPanel x:Name="Document1" Caption="DocumentPanel1" MDISize="800,600">
<Grid>
<DockPanel>
<dxb:MainMenuControl Caption="File" DockPanel.Dock="Top">
<dxb:BarButtonItem Content="Doc1Item1" MergeOrder="0"/>
<dxb:BarButtonItem Content="Doc1Item2" MergeOrder="1"/>
<dxb:BarButtonItem Content="Doc1Item3" MergeOrder="2"/>
</dxb:MainMenuControl>
<Grid>
<TextBlock Text="Items are autmatically merged" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Grid>
</DockPanel>
</Grid>
</dxdo:DocumentPanel>
<dxdo:DocumentPanel x:Name="Document2" Caption="DocumentPanel2" MDILocation="226,22" MDISize="800,600" MDIMergeStyle="Never">
<Grid>
<DockPanel>
<dxb:MainMenuControl Caption="File" DockPanel.Dock="Top">
<dxb:BarButtonItem Content="Doc2Item1"/>
<dxb:BarButtonItem Content="Doc2Item2"/>
<dxb:BarButtonItem Content="Doc2Item3"/>
</dxb:MainMenuControl>
<Grid>
<TextBlock Text="Items are not merged because MDIMergeStyle is 'Never'" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Grid>
</DockPanel>
</Grid>
</dxdo:DocumentPanel>
</dxdo:DocumentGroup>
</dxdo:LayoutGroup>
</dxdo:DockLayoutManager>
</Grid>
</DockPanel>
</Grid>
</dxr:DXRibbonWindow>