Inheritance: NotifyProperty
Beispiel #1
0
        public model(viewModel view)
        {
            this.view = view;
            ran = new Random();
            ce();

            App.Current.Suspending += Current_Suspending;
        }
Beispiel #2
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     if (e.Parameter is viewModel)
     {
         view = e.Parameter as viewModel;
         DataContext = view;
     }
     else
     {
         view = new viewModel();
         view.Selectchange = selectchange;
         this.DataContext = view;
     }
 }