[]
        
(Showing Draft Content)

C1.WinUI.Core.C1InputEventArgs

C1InputEventArgs Class

Contains information about gesture events.

Namespace: C1.WinUI.Core
Assembly: C1.WinUI.Core.dll
Syntax
public class C1InputEventArgs : EventArgs

Constructors

Name Description
C1InputEventArgs(FrameworkElement, RoutedEventArgs)

Initializes a new instance of the C1InputEventArgs class.

C1InputEventArgs(FrameworkElement, RoutedEventArgs, C1PointerDeviceType)

Initializes a new instance of the C1InputEventArgs class.

C1InputEventArgs(RoutedEventArgs, C1PointerDeviceType)

Initializes a new instance of the C1InputEventArgs class.

Properties

Name Description
Handled

Gets or sets a value that marks the routed event as handled. Setting to true prevents most handlers along the event route from handling the same event again.

IsCommandPressed

Gets whether command key is pressed.

IsCtrlPressed

Gets whether ctrl key is pressed.

IsShiftPressed

Gets whether shift key is pressed.

OriginalEventArgs

Gets the arguments of the original event which raised this event.

OriginalSource

Gets a reference to the object that raised the event.

PointerDeviceType

Gets the type of pointer which performed the action.

Methods

Name Description
GetIsHandled(RoutedEventArgs)

Gets a value indicating whether the specified event is handled.

GetPointerType(RoutedEventArgs)

Gets the type of the pointer.

GetPosition(FrameworkElement)

Gets the position of the pointer performing the drag gesture relatively to the specified element.

GetPosition(RoutedEventArgs, FrameworkElement)

Gets the position of the pointer or finger.

HitTest<T>(double)

Returns the first visual element which is hit by this event.

SetIsHandled(RoutedEventArgs, bool)

Sets whether the event is handled.