private void NavigateBack(object sender, RoutedEventArgs e) { MainWindow mainWindow = (MainWindow)Application.Current.MainWindow; parentView.DataContext = null; parentView.DataContext = Manager.MainWindowViewModel; mainWindow.NavigateToView(parentView, MainWindow.SlideDirection.Down); }
private void Signout_Click(object sender, RoutedEventArgs e) { Manager.Account.Logout(removeDevice: true); MainWindow mainWindow = (MainWindow)Application.Current.MainWindow; mainWindow.NavigateToView(new LandingView(), MainWindow.SlideDirection.Down); }
private void Window_Initialized(object sender, EventArgs e) { // Initialize the main window's data context DataContext = Manager.MainWindowViewModel; // Configure properties for the toast manager Manager.ToastManager.MainWindowActive = true; windowCurrentHeight = this.Height; // Specify the main window's view frame source MainWindow mainWindow = (MainWindow)Application.Current.MainWindow; if (Manager.MainWindowViewModel.ViewFrameSource == null) { mainWindow.NavigateToView((UserControl)Activator.CreateInstance(Manager.MainWindowViewModel.InitialViewFrameSourceType), MainWindow.SlideDirection.None); } else { mainWindow.NavigateToView(Manager.MainWindowViewModel.ViewFrameSource, MainWindow.SlideDirection.None); } }
private void NavigateOnboarding1(object sender, RoutedEventArgs e) { MainWindow mainWindow = (MainWindow)Application.Current.MainWindow; mainWindow.NavigateToView(new OnboardingView1(), MainWindow.SlideDirection.Up); }
private void GetHelp_Click(object sender, RoutedEventArgs e) { MainWindow mainWindow = (MainWindow)Application.Current.MainWindow; mainWindow.NavigateToView(new GetHelpView(this), MainWindow.SlideDirection.Left); }
private void NavigateBack(object sender, RoutedEventArgs e) { MainWindow mainWindow = (MainWindow)Application.Current.MainWindow; mainWindow.NavigateToView(parentView, MainWindow.SlideDirection.Right); }
private void NavigateSettings(object sender, RoutedEventArgs e) { MainWindow mainWindow = (MainWindow)Application.Current.MainWindow; mainWindow.NavigateToView(new SettingsView(), MainWindow.SlideDirection.Up); }
private void NavigateDevices(object sender, RoutedEventArgs e) { MainWindow mainWindow = (MainWindow)Application.Current.MainWindow; mainWindow.NavigateToView(new DevicesView(), MainWindow.SlideDirection.Left); }
private void ExitOnboarding(object sender, RoutedEventArgs e) { MainWindow mainWindow = (MainWindow)Application.Current.MainWindow; mainWindow.NavigateToView(new LandingView(), MainWindow.SlideDirection.Down); }
private void NavigateLanguage(object sender, RoutedEventArgs e) { MainWindow mainWindow = (MainWindow)Application.Current.MainWindow; mainWindow.NavigateToView(new LanguageView(this), MainWindow.SlideDirection.Left); }
private void NavigateNetworkSettings(object sender, RoutedEventArgs e) { MainWindow mainWindow = (MainWindow)Application.Current.MainWindow; mainWindow.NavigateToView(new NetworkSettingsView(this), MainWindow.SlideDirection.Left); }