-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml.cs
39 lines (34 loc) · 1.01 KB
/
MainWindow.xaml.cs
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
using DevExpress.Data;
using DevExpress.Mvvm;
using DevExpress.Xpf.Grid;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Windows;
namespace TreeList_DataBinding {
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window {
public MainWindow() {
InitializeComponent();
treeListView1.ExpandAllNodes();
treeListView1.NodeSummary.Add(new TreeListSummaryItem() {
FieldName = "Statistics",
SummaryType = SummaryItemType.Max,
ShowInColumn = "Department"
});
}
}
public class ViewModel : ViewModelBase
{
public ObservableCollection<Employee> SourceList
{
get { return GetProperty(() => SourceList); }
set { SetProperty(() => SourceList, value); }
}
public ViewModel()
{
SourceList = Stuff.GetStuff();
}
}
}