public GalleryViewModel() { var home = new Home.HomeViewModel(); GalleryItems.Add(home); var controlItems = new ControlsViewModel(); GalleryItems.Add(controlItems); var converters = new ConvertersViewModel(); GalleryItems.Add(converters); var popupItems = new PopupsViewModel(); GalleryItems.Add(popupItems); var behaviourItems = new BehavioursViewModel(); GalleryItems.Add(behaviourItems); var dragAndDropItems = new DragAndDropViewModel(); GalleryItems.Add(dragAndDropItems); var mvvmItems = new MVVMViewModel(); GalleryItems.Add(mvvmItems); SelectedGalleryItem = home; }
public GalleryViewModel() { var homeItem = new Home.HomeViewModel(); GalleryItems.Add(homeItem); var controlItems = new ControlsViewModel(); GalleryItems.Add(controlItems); var popupItems = new GalleryItemViewModel() { Title = "Popups" }; popupItems.GalleryItems.Add(new PopupsViewModel()); GalleryItems.Add(popupItems); //var behaviourItems = new GalleryItemViewModel() {Title = "Behaviours"}; //behaviourItems.GalleryItems.Add(new ListViewItemContextMenuBehaviourViewModel()); //GalleryItems.Add(behaviourItems); var dragAndDropItems = new GalleryItemViewModel() { Title = "Drag and Drop" }; dragAndDropItems.GalleryItems.Add(new CanvasSampleViewModel()); dragAndDropItems.GalleryItems.Add(new ItemsControlSampleViewModel()); GalleryItems.Add(dragAndDropItems); var mvvmItems = new GalleryItemViewModel() { Title = "MVVM" }; mvvmItems.GalleryItems.Add(new SimpleExampleViewModel()); mvvmItems.GalleryItems.Add(new CommandingSampleViewModel()); mvvmItems.GalleryItems.Add(new ViewBrokerSampleViewModel()); mvvmItems.GalleryItems.Add(new ViewBrokerActivationSampleViewModel()); GalleryItems.Add(mvvmItems); }