コード例 #1
0
 // TODO: do not like this hack but it takes away the nasty syntax from the XAML side
 public GroupViewModel()
 {
     var source = new SampleDataSource();
     var sampleData = source.AllGroups[0];
     Group = sampleData;
     Items = sampleData.Items;
 }
コード例 #2
0
 // TODO: do not like this hack but it takes away the nasty syntax from the XAML side
 public ItemViewModel()
 {
     var source = new SampleDataSource();
     var sampleData = source.AllGroups[0];
     Group = sampleData;
     Items = sampleData.Items;
     SelectedItem = sampleData.Items.First();
 }
コード例 #3
0
 // TODO: do not like this hack but it takes away the nasty syntax from the XAML side
 public HomeViewModel()
 {
     var source = new SampleDataSource();
     Groups = source.AllGroups;
 }