Exemple #1
0
        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));
        }
Exemple #2
0
 private void ActionSheetExecute()
 {
     ActionSheetCommand?.Execute(this.DataContext);
 }