コード例 #1
0
 private void Tap_Tapped(object sender, EventArgs e)
 {
     if (BackCommand?.CanExecute(BackCommandParameter) ?? false)
     {
         BackCommand.Execute(BackCommandParameter);
     }
 }
コード例 #2
0
        private void BackButtonClickHandler(object sender, RoutedEventArgs args)
        {
            RoutedEventArgs backArgs = new RoutedEventArgs(BackEvent, this);

            RaiseEvent(backArgs);

            if (BackCommand != null && BackCommand.CanExecute(null))
            {
                BackCommand.Execute(null);
            }
        }