Skip to main content

ContextRequestedEventArgs Class

Definition

Namespace:Avalonia.Input
Assembly:Avalonia.Base
Package:Avalonia

Provides event data for the ContextRequested event.

public class ContextRequestedEventArgs

Inheritance: EventArgs -> RoutedEventArgs -> ContextRequestedEventArgs

Constructors

NameDescription
ContextRequestedEventArgs (3 overloads)Initializes a new instance of the ContextRequestedEventArgs class.

ContextRequestedEventArgs overloads

ContextRequestedEventArgs Constructor

Initializes a new instance of the ContextRequestedEventArgs class.

public ContextRequestedEventArgs()

ContextRequestedEventArgs Constructor

Initializes a new instance of the ContextRequestedEventArgs class.

public ContextRequestedEventArgs(Avalonia.Input.ContextRequestedEventArgs contextRequestedEventArgs)
Parameters

contextRequestedEventArgs Avalonia.Input.ContextRequestedEventArgs

ContextRequestedEventArgs Constructor

Initializes a new instance of the ContextRequestedEventArgs class.

public ContextRequestedEventArgs(Avalonia.Input.PointerEventArgs pointerEventArgs)
Parameters

pointerEventArgs Avalonia.Input.PointerEventArgs

Methods

NameDescription
TryGetPositionNo summary available.

TryGetPosition Method

public bool TryGetPosition(Avalonia.Input.InputElement relativeTo, Avalonia.Point& point)

Parameters

relativeTo Avalonia.Input.InputElement

point Avalonia.Point&

Returns

bool

Properties

NameDescription
HandledGets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs.
RouteGets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs.
RoutedEventGets or sets the routed event associated with these event args. Inherited from RoutedEventArgs.
SourceGets or sets the source object that raised the routed event. Inherited from RoutedEventArgs.