// 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; }
// 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(); }
// 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; }