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; }
public LoginView(HomeViewModel homeVm) { _homeVm = homeVm; RetainInstance = true; }