Exemple #1
0
        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            DataContext = new MainVM();

            if (App.Current.ShowRateApp)
            {
                NavigationService.Navigate(new Uri("/Views/ViewRateApp.xaml", UriKind.Relative));
                App.Current.ShowRateApp = false;
            }

            if (App.Current.ShowGoPro)
            {
                GoPro(null, null);
                App.Current.ShowGoPro = false;
            }
        }
Exemple #2
0
        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            DataContext = new MainVM();

            if (App.Current.ShowRateApp)
            {
                NavigationService.Navigate(new Uri("/Views/ViewRateApp.xaml", UriKind.Relative));
                App.Current.ShowRateApp = false;
            }

            if (App.Current.ShowGoPro)
            {
                GoPro(null, null);
                App.Current.ShowGoPro = false;
            }
        }
Exemple #3
0
 public ViewMain()
 {
     InitializeComponent();
     DataContext = new MainVM();
 }
Exemple #4
0
 public ViewMain()
 {
     InitializeComponent();
     DataContext = new MainVM();
 }