private void Tap_Tapped(object sender, EventArgs e) { if (BackCommand?.CanExecute(BackCommandParameter) ?? false) { BackCommand.Execute(BackCommandParameter); } }
private void BackButtonClickHandler(object sender, RoutedEventArgs args) { RoutedEventArgs backArgs = new RoutedEventArgs(BackEvent, this); RaiseEvent(backArgs); if (BackCommand != null && BackCommand.CanExecute(null)) { BackCommand.Execute(null); } }