-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml.vb
40 lines (33 loc) · 994 Bytes
/
MainWindow.xaml.vb
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
Imports DevExpress.Data
Imports DevExpress.Mvvm
Imports DevExpress.Xpf.Grid
Imports System.Collections.Generic
Imports System.Collections.ObjectModel
Imports System.Windows
Namespace TreeList_DataBinding
''' <summary>
''' Interaction logic for MainWindow.xaml
''' </summary>
Partial Public Class MainWindow
Inherits Window
Public Sub New()
InitializeComponent()
treeListView1.ExpandAllNodes()
treeListView1.NodeSummary.Add(New TreeListSummaryItem() With {.FieldName = "Statistics", .SummaryType = SummaryItemType.Max, .ShowInColumn = "Department"})
End Sub
End Class
Public Class ViewModel
Inherits ViewModelBase
Public Property SourceList() As ObservableCollection(Of Employee)
Get
Return GetProperty(Function() SourceList)
End Get
Set(ByVal value As ObservableCollection(Of Employee))
SetProperty(Function() SourceList, value)
End Set
End Property
Public Sub New()
SourceList = Stuff.GetStuff()
End Sub
End Class
End Namespace