Пример #1
0
 void InitViewKind()
 {
     CollectionUIViewModel.ViewKindChanged += ViewModel_ViewKindChanged;
     biShowCard.BindCommand(() => CollectionUIViewModel.ShowCard(), CollectionUIViewModel);
     biShowList.BindCommand(() => CollectionUIViewModel.ShowList(), CollectionUIViewModel);
     bmiShowCard.BindCommand(() => CollectionUIViewModel.ShowCard(), CollectionUIViewModel);
     bmiShowList.BindCommand(() => CollectionUIViewModel.ShowList(), CollectionUIViewModel);
     biResetView.BindCommand(() => CollectionUIViewModel.ResetView(), CollectionUIViewModel);
 }
Пример #2
0
 void InitViewKind()
 {
     CollectionUIViewModel.DefaultViewKind  = CollectionViewKind.MasterDetailView;
     CollectionUIViewModel.ViewKind         = CollectionViewKind.MasterDetailView;
     CollectionUIViewModel.ViewKindChanged += ViewModel_ViewKindChanged;
     biShowMasterDetail.BindCommand(() => CollectionUIViewModel.ShowMasterDetail(), CollectionUIViewModel);
     biShowList.BindCommand(() => CollectionUIViewModel.ShowList(), CollectionUIViewModel);
     biShowCard.BindCommand(() => CollectionUIViewModel.ShowCard(), CollectionUIViewModel);
     bmiShowMasterDetail.BindCommand(() => CollectionUIViewModel.ShowMasterDetail(), CollectionUIViewModel);
     bmiShowList.BindCommand(() => CollectionUIViewModel.ShowList(), CollectionUIViewModel);
     bmiShowCard.BindCommand(() => CollectionUIViewModel.ShowCard(), CollectionUIViewModel);
     biResetView.BindCommand(() => CollectionUIViewModel.ResetView(), CollectionUIViewModel);
 }