This repository has been archived by the owner on Oct 16, 2023. It is now read-only.
/
MainWindow.xaml
40 lines (40 loc) · 1.76 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
<Window x:Class="DXTreeListSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
dx:ThemeManager.ThemeName="DeepBlue"
xmlns:local="clr-namespace:DXTreeListSample"
Title="MainWindow" Height="350" Width="525"
Name="win">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<dxg:TreeListControl x:Name="grid" >
<dxg:TreeListControl.Columns>
<dxg:TreeListColumn FieldName="Id"/>
<dxg:TreeListColumn FieldName="ParentId"/>
<dxg:TreeListColumn FieldName="Name"/>
</dxg:TreeListControl.Columns>
<dxg:TreeListControl.View>
<local:MyTreeListView
x:Name="view"
KeyFieldName="Id"
ParentFieldName="ParentId"
AutoWidth="True"
ShowTotalSummary="True"
UseLightweightTemplates="None"/>
</dxg:TreeListControl.View>
<dxg:TreeListControl.TotalSummary>
<dxg:TreeListSummaryItem FieldName="Id" SummaryType="Sum"/>
<dxg:TreeListSummaryItem FieldName="Id" SummaryType="Count"/>
<dxg:TreeListSummaryItem FieldName="Id" SummaryType="Min"/>
<dxg:TreeListSummaryItem FieldName="Id" SummaryType="Max"/>
<dxg:TreeListSummaryItem FieldName="Name" SummaryType="Count"/>
</dxg:TreeListControl.TotalSummary>
</dxg:TreeListControl>
</Grid>
</Window>