Пример #1
0
 public StudentPage()
 {
     viewModel        = new StudentPageViewModel();
     viewModel.GoBack = new CommandHandler(() =>
     {
         if (this.Frame.CanGoBack)
         {
             this.Frame.GoBack();
         }
     });
     this.InitializeComponent();
 }
Пример #2
0
 public StudentPage()
 {
     InitializeComponent();
     BindingContext = new StudentPageViewModel();
 }