Beispiel #1
0
 private void ClearAndHighlightActiveMenuItem(HomeViewModel.Section section)
 {
     foreach (var menuItem in ViewModel.MenuItems)
     {
         menuItem.IsSelected = false;
     }
     var selectedMenuItem = ViewModel.MenuItems.SingleOrDefault(m => m.Id == (int) section);
     if (selectedMenuItem != null)
         selectedMenuItem.IsSelected = true;
 }
Beispiel #2
0
 public LoginView(HomeViewModel homeVm)
 {
     _homeVm = homeVm;
     RetainInstance = true;
 }