private void GestureRecognizer_CrossSliding(GestureRecognizer sender, CrossSlidingEventArgs args) { if (args.CrossSlidingState == CrossSlidingState.Completed) { System.Diagnostics.Debug.WriteLine("Cross " + args.Position); } }
uint ICrossSlidingEventArgsResolver.ContactCount(CrossSlidingEventArgs e) => e.ContactCount;
private void GestureRecognizer_CrossSliding(GestureRecognizer sender, CrossSlidingEventArgs args) { TxtGestureNotes.Text = "Slide/swipe gesture recognized on cross horizontal"; }
Point ICrossSlidingEventArgsResolver.Position(CrossSlidingEventArgs e) => e.Position;
CrossSlidingState ICrossSlidingEventArgsResolver.CrossSlidingState(CrossSlidingEventArgs e) => e.CrossSlidingState;
PointerDeviceType ICrossSlidingEventArgsResolver.PointerDeviceType(CrossSlidingEventArgs e) => e.PointerDeviceType;
/// <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);
/// <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);
/// <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);
/// <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);