-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainView.xaml
More file actions
39 lines (39 loc) · 2.15 KB
/
MainView.xaml
File metadata and controls
39 lines (39 loc) · 2.15 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
<UserControl x:Class="DocumentManagerSerialization.Views.MainView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking"
xmlns:ViewModels="clr-namespace:DocumentManagerSerialization.ViewModels"
mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300"
DataContext="{dxmvvm:ViewModelSource Type=ViewModels:MainViewModel}">
<DockPanel>
<dxmvvm:Interaction.Behaviors>
<dxmvvm:CurrentWindowSerializationBehavior/>
<dxmvvm:LayoutSerializationService/>
<dxmvvm:CurrentWindowService ClosingCommand="{Binding OnWindowClosingCommand}"/>
<dxmvvm:EventToCommand EventName="Initialized" Command="{Binding OnWindowLoadedCommand}"/>
</dxmvvm:Interaction.Behaviors>
<dxb:MainMenuControl DockPanel.Dock="Top">
<dxb:MainMenuControl.Items>
<dxb:BarButtonItem Content="New Root Document" Command="{Binding OpenDocumentCommand}"/>
<dxb:BarSplitButtonItem Content="Thems">
<dxmvvm:Interaction.Behaviors>
<dxb:BarSplitItemThemeSelectorBehavior/>
</dxmvvm:Interaction.Behaviors>
</dxb:BarSplitButtonItem>
</dxb:MainMenuControl.Items>
</dxb:MainMenuControl>
<dxdo:DockLayoutManager>
<dxdo:LayoutGroup Caption="LayoutRoot">
<dxdo:DocumentGroup x:Name="documentGroup" DestroyOnClosingChildren="False">
<dxmvvm:Interaction.Behaviors>
<dxdo:DockingDocumentUIService/>
</dxmvvm:Interaction.Behaviors>
</dxdo:DocumentGroup>
</dxdo:LayoutGroup>
</dxdo:DockLayoutManager>
</DockPanel>
</UserControl>