public MainPage() { InitializeComponent(); AlertCommand.Subscribe(() => DisplayAlert("タイトル", "メッセージ", "OK")); ActionSheetCommand.Subscribe(() => DisplayActionSheet("選択してね", "キャンセル", "削除", "編集", "コピー", "貼り付け")); PopupCommand.Subscribe(() => PopupNavigation.PushAsync(new PopUp(true, false))); TransitionCommand.Subscribe(() => App.Current.MainPage = new PopUp(false, true)); }
private void ActionSheetExecute() { ActionSheetCommand?.Execute(this.DataContext); }