Example #1
0
        public MainWindowViewModel()
        {
            ListViewModels.Add(new LandingPageViewModel());
            CurrentViewModel = _ViewModels[0];  //landing page

            MessengerInstance.Register <NotificationMessage <string> >(this, MessageHandle);
        }
Example #2
0
        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;
        }