public MainWindowViewModel() { ListViewModels.Add(new LandingPageViewModel()); CurrentViewModel = _ViewModels[0]; //landing page MessengerInstance.Register <NotificationMessage <string> >(this, MessageHandle); }
private void Page_Loaded(object sender, RoutedEventArgs e) { ListViewModels.Focus(FocusState.Programmatic); string newTitle = string.Empty; if (_typeList == typeof(Models.Group)) { newTitle = "Выбор группы"; } else if (_typeList == typeof(Models.Types)) { newTitle = "Выбор типа"; } ApplicationView.GetForCurrentView().Title = newTitle; }