Exemple #1
0
 internal virtual void OnPointerCanceledInternal(object sender, PointerRoutedEventArgs args)
 {
     if (!args.Handled)
     {
         PointerCanceled?.Invoke(sender, args);
     }
 }
Exemple #2
0
        protected override bool OnCancel(MotionEvent e)
        {
            try
            {
                var args = GetPointerEventArgs(e, 0);

                PointerCanceled?.Invoke(Target, args);

                return(args.Handled);
            }
            catch (Exception ex)
            {
                Windows.UI.Xaml.Application.Current.RaiseRecoverableUnhandledExceptionOrLog(ex, this);
                return(false);
            }
        }