示例#1
0
 private void GestureRecognizer_CrossSliding(GestureRecognizer sender, CrossSlidingEventArgs args)
 {
     if (args.CrossSlidingState == CrossSlidingState.Completed)
     {
         System.Diagnostics.Debug.WriteLine("Cross " + args.Position);
     }
 }
示例#2
0
 uint ICrossSlidingEventArgsResolver.ContactCount(CrossSlidingEventArgs e) => e.ContactCount;
 private void GestureRecognizer_CrossSliding(GestureRecognizer sender, CrossSlidingEventArgs args)
 {
     TxtGestureNotes.Text = "Slide/swipe gesture recognized on cross horizontal";
 }
示例#4
0
 Point ICrossSlidingEventArgsResolver.Position(CrossSlidingEventArgs e) => e.Position;
示例#5
0
 CrossSlidingState ICrossSlidingEventArgsResolver.CrossSlidingState(CrossSlidingEventArgs e) => e.CrossSlidingState;
示例#6
0
 PointerDeviceType ICrossSlidingEventArgsResolver.PointerDeviceType(CrossSlidingEventArgs e) => e.PointerDeviceType;
示例#7
0
 /// <summary>
 /// Gets the number of contact points at the time the CrossSliding event is recognized.
 /// </summary>
 /// <param name="e">The requested <see cref="CrossSlidingEventArgs"/>.</param>
 /// <returns>The number of contact points.</returns>
 public static uint ContactCount(this CrossSlidingEventArgs e) => Resolver.ContactCount(e);
示例#8
0
 /// <summary>
 /// Gets the state of the CrossSliding event.
 /// </summary>
 /// <param name="e">The requested <see cref="CrossSlidingEventArgs"/>.</param>
 /// <returns>State of the CrossSliding event.</returns>
 public static CrossSlidingState CrossSlidingState(this CrossSlidingEventArgs e) => Resolver.CrossSlidingState(e);
示例#9
0
 /// <summary>
 /// Gets the location of the touch contact.
 /// </summary>
 /// <param name="e">The requested <see cref="CrossSlidingEventArgs"/>.</param>
 /// <returns>The screen coordinates, in device-independent pixel (DIP).</returns>
 public static Point Position(this CrossSlidingEventArgs e) => Resolver.Position(e);
示例#10
0
 /// <summary>
 /// Gets the device type of the input source.
 /// </summary>
 /// <param name="e">The requested <see cref="CrossSlidingEventArgs"/>.</param>
 /// <returns>The device type.</returns>
 public static PointerDeviceType PointerDeviceType(this CrossSlidingEventArgs e) => Resolver.PointerDeviceType(e);