This repository has been archived by the owner on Dec 5, 2023. It is now read-only.
/
MainWindow.xaml
60 lines (53 loc) · 3.47 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
57
58
59
60
<Window 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:dxre="http://schemas.devexpress.com/winfx/2008/xaml/richedit"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
xmlns:dxo="http://schemas.devexpress.com/winfx/2008/xaml/office"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dxsps="http://schemas.devexpress.com/winfx/2008/xaml/spreadsheet"
xmlns:local="clr-namespace:SpreadsheetControl_WPF_API_Part03"
xmlns:UI="clr-namespace:DevExpress.Xpf.RichEdit.UI;assembly=DevExpress.Xpf.RichEdit.v15.1"
x:Class="SpreadsheetControl_WPF_API_Part03.MainWindow" Height="800" Width="1024"
dx:ThemeManager.ThemeName="Office2013" Title="SpreadsheetControl_WPF_API_Part03" Icon="{dx:DXImage Image=Example_16x16.png}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="2*" />
<RowDefinition Height="3*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="333" />
</Grid.ColumnDefinitions>
<Label x:Name="codeExampleNameLbl" Grid.Row="0" FontSize="26.667" SnapsToDevicePixels="True" Padding="9,0,0,4">Example:</Label>
<dx:DXTabControl x:Name="tabControl" Grid.Row="1" Grid.Column="0" SelectionChanged="tabControl_SelectionChanged">
<dx:DXTabItem Header="CS" Width="250">
<dxre:RichEditControl x:Name="richEditControlCS" ActiveViewType="Simple" />
</dx:DXTabItem>
<dx:DXTabItem Header="VB" Width="250">
<dxre:RichEditControl x:Name="richEditControlVB" ActiveViewType="Simple" />
</dx:DXTabItem>
<dx:DXTabItem Header="CSHelper" Width="250">
<dxre:RichEditControl x:Name="richEditControlCSClass" ActiveViewType="Simple" />
</dx:DXTabItem>
<dx:DXTabItem Header="VBHelper" Width="250">
<dxre:RichEditControl x:Name="richEditControlVBClass" ActiveViewType="Simple" />
</dx:DXTabItem>
</dx:DXTabControl>
<dxsps:SpreadsheetControl x:Name="spreadsheetControl" Grid.Row="2" Grid.Column="0" />
<dxg:TreeListControl x:Name="treeList1" Grid.Column="1" Grid.Row="0" Grid.RowSpan="3" CurrentItemChanged="OnNewExampleSelected">
<dxg:TreeListControl.Resources>
<ResourceDictionary>
<local:CodeExampleGroupChildrenSelector x:Key="childrenSelector" />
</ResourceDictionary>
</dxg:TreeListControl.Resources>
<dxg:TreeListControl.Columns>
<dxg:TreeListColumn Header="Examples" FieldName="RegionName" AllowEditing="False" AllowBestFit="True" AllowDrop="False" AllowSearchPanel="False" />
</dxg:TreeListControl.Columns>
<dxg:TreeListControl.View>
<dxg:TreeListView x:Name="view" TreeDerivationMode="ChildNodesSelector" ChildNodesSelector="{StaticResource childrenSelector}" ShowIndicator="False" ShowColumnHeaders="False" AutoWidth="True" AllowPerPixelScrolling="False" CustomColumnDisplayText="view_CustomColumnDisplayText" />
</dxg:TreeListControl.View>
</dxg:TreeListControl>
</Grid>
</Window>