public StudentPage() { viewModel = new StudentPageViewModel(); viewModel.GoBack = new CommandHandler(() => { if (this.Frame.CanGoBack) { this.Frame.GoBack(); } }); this.InitializeComponent(); }
public StudentPage() { InitializeComponent(); BindingContext = new StudentPageViewModel(); }