-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
36 lines (36 loc) · 1.61 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
<dx:ThemedWindow
x:Class="DXSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ViewModels="clr-namespace:DXSample.ViewModels"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking"
Title="MainWindow"
Width="1000"
Height="800">
<Grid>
<Grid.DataContext>
<ViewModels:MainViewModel />
</Grid.DataContext>
<dxdo:DockLayoutManager x:Name="dlm" ItemsSource="{Binding Panels}">
<dxdo:DockLayoutManager.Resources>
<Style x:Key="BaseStyle" TargetType="dxdo:LayoutPanel">
<Setter Property="Caption" Value="{Binding Caption}" />
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<TextBlock Text="{Binding Content}" />
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
<Style BasedOn="{StaticResource BaseStyle}" TargetType="dxdo:LayoutPanel" />
<Style BasedOn="{StaticResource BaseStyle}" TargetType="dxdo:DocumentPanel" />
</dxdo:DockLayoutManager.Resources>
<dxdo:LayoutGroup x:Name="root">
<dxdo:LayoutGroup Name="layoutGroup" />
<dxdo:DocumentGroup Name="documentGroup" />
</dxdo:LayoutGroup>
</dxdo:DockLayoutManager>
</Grid>
</dx:ThemedWindow>