예제 #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;
            }
        }
예제 #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;
            }
        }
예제 #3
0
 public ViewMain()
 {
     InitializeComponent();
     DataContext = new MainVM();
 }
예제 #4
0
 public ViewMain()
 {
     InitializeComponent();
     DataContext = new MainVM();
 }