public ViewModel()
        {
            SourceList  = Stuff.GetStuff();
            SummaryList = new ObservableCollection <SummaryTask>();

            SummaryList.Add(new SummaryTask()
            {
                FieldName = "Statistics", Type = SummaryItemType.Max
            });
            SummaryList.Add(new SummaryTask()
            {
                FieldName = "Statistics", Type = SummaryItemType.Average
            });
            SummaryList.Add(new SummaryTask()
            {
                FieldName = "Department", Type = SummaryItemType.Count
            });
        }
Beispiel #2
0
 public ViewModel()
 {
     SourceList = Stuff.GetStuff();
 }
 public MainWindow()
 {
     InitializeComponent();
     treeList.ItemsSource = Stuff.GetStuff();
     treeListView1.ExpandAllNodes();
 }