Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
            }
        }
Ejemplo n.º 4
0
        private void NavigateOnboarding1(object sender, RoutedEventArgs e)
        {
            MainWindow mainWindow = (MainWindow)Application.Current.MainWindow;

            mainWindow.NavigateToView(new OnboardingView1(), MainWindow.SlideDirection.Up);
        }
Ejemplo n.º 5
0
        private void GetHelp_Click(object sender, RoutedEventArgs e)
        {
            MainWindow mainWindow = (MainWindow)Application.Current.MainWindow;

            mainWindow.NavigateToView(new GetHelpView(this), MainWindow.SlideDirection.Left);
        }
Ejemplo n.º 6
0
        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);
        }
Ejemplo n.º 9
0
        private void ExitOnboarding(object sender, RoutedEventArgs e)
        {
            MainWindow mainWindow = (MainWindow)Application.Current.MainWindow;

            mainWindow.NavigateToView(new LandingView(), MainWindow.SlideDirection.Down);
        }
Ejemplo n.º 10
0
        private void NavigateLanguage(object sender, RoutedEventArgs e)
        {
            MainWindow mainWindow = (MainWindow)Application.Current.MainWindow;

            mainWindow.NavigateToView(new LanguageView(this), MainWindow.SlideDirection.Left);
        }
Ejemplo n.º 11
0
        private void NavigateNetworkSettings(object sender, RoutedEventArgs e)
        {
            MainWindow mainWindow = (MainWindow)Application.Current.MainWindow;

            mainWindow.NavigateToView(new NetworkSettingsView(this), MainWindow.SlideDirection.Left);
        }