InputElement Class
Definition
Implements input-related functionality for a control.
public class InputElement
Constructors
| Name | Description |
|---|---|
| InputElement | No summary available. |
InputElement Constructor
public InputElement()
Methods
| Name | Description |
|---|---|
| Focus | Focuses the control. |
| GetIsHoldWithMouseEnabled | No summary available. |
| GetIsHoldingEnabled | No summary available. |
| SetIsHoldWithMouseEnabled | No summary available. |
| SetIsHoldingEnabled | No summary available. |
| AddHandler (2 overloads) | Adds a handler for the specified routed event. Inherited from Interactive. |
| RaiseEvent | Raises a routed event. Inherited from Interactive. |
| RemoveHandler (2 overloads) | Removes a handler for the specified routed event. Inherited from Interactive. |
| ApplyTemplate | Creates the visual children of the control, if necessary Inherited from Layoutable. |
| Arrange | Arranges the control and its children. Inherited from Layoutable. |
| InvalidateArrange | Invalidates the arrangement of the control and queues a new layout pass. Inherited from Layoutable. |
| InvalidateMeasure | Invalidates the measurement of the control and queues a new layout pass. Inherited from Layoutable. |
| Measure | Carries out a measure of the control. Inherited from Layoutable. |
| UpdateLayout | Executes a layout pass. Inherited from Layoutable. |
| GetFlowDirection | Gets the value of the attached Avalonia.Visual.FlowDirectionProperty on a control. Inherited from Visual. |
| InvalidateVisual | Invalidates the visual and queues a repaint. Inherited from Visual. |
| Render | Renders the visual to a Avalonia.Media.DrawingContext. Inherited from Visual. |
| SetFlowDirection | Sets the value of the attached Avalonia.Visual.FlowDirectionProperty on a control. Inherited from Visual. |
| ApplyStyling | Applies styling to the control if the control is initialized and styling is not already applied. Inherited from StyledElement. |
| BeginInit | Inherited from StyledElement. |
| EndInit | Inherited from StyledElement. |
| TryGetResource | Inherited from StyledElement. |
| Bind (8 overloads) | Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject. |
| CheckAccess | Returns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject. |
| ClearValue (4 overloads) | Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject. |
| CoerceValue | Coerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject. |
| Equals | Compares two objects using reference equality. Inherited from AvaloniaObject. |
| GetBaseValue | Inherited from AvaloniaObject. |
| GetHashCode | Gets the hash code for the object. Inherited from AvaloniaObject. |
| GetValue (3 overloads) | Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| IsAnimating | Checks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject. |
| IsSet | Checks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject. |
| SetCurrentValue (2 overloads) | Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject. |
| SetValue (3 overloads) | Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| VerifyAccess | Checks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject. |
Focus Method
Focuses the control.
public bool Focus(Avalonia.Input.NavigationMethod method, Avalonia.Input.KeyModifiers keyModifiers)
Parameters
method Avalonia.Input.NavigationMethod
The method by which focus was changed.
keyModifiers Avalonia.Input.KeyModifiers
Any key modifiers active at the time of focus.
Returns
bool
GetIsHoldWithMouseEnabled Method
public bool GetIsHoldWithMouseEnabled(Avalonia.StyledElement element)
Parameters
element Avalonia.StyledElement
Returns
bool
GetIsHoldingEnabled Method
public bool GetIsHoldingEnabled(Avalonia.StyledElement element)
Parameters
element Avalonia.StyledElement
Returns
bool
SetIsHoldWithMouseEnabled Method
public void SetIsHoldWithMouseEnabled(Avalonia.StyledElement element, bool value)
Parameters
element Avalonia.StyledElement
value bool
SetIsHoldingEnabled Method
public void SetIsHoldingEnabled(Avalonia.StyledElement element, bool value)
Parameters
element Avalonia.StyledElement
value bool
Properties
| Name | Description |
|---|---|
| Cursor | Gets or sets associated mouse cursor. |
| Focusable | Gets or sets a value indicating whether the control can receive focus. |
| GestureRecognizers | No summary available. |
| IsEffectivelyEnabled | Gets a value indicating whether this control and all its parents are enabled. |
| IsEnabled | Gets or sets a value indicating whether the control is enabled for user interaction. |
| IsFocused | Gets a value indicating whether the control is focused. |
| IsHitTestVisible | Gets or sets a value indicating whether the control is considered for hit testing. |
| IsKeyboardFocusWithin | Gets a value indicating whether keyboard focus is anywhere within the element or its visual tree child elements. |
| IsPointerOver | Gets a value indicating whether the pointer is currently over the control. |
| IsTabStop | Gets or sets a value that indicates whether the control is included in tab navigation. |
| KeyBindings | No summary available. |
| TabIndex | Gets or sets a value that determines the order in which elements receive focus when the user navigates through controls by pressing the Tab key. |
| DesiredSize | Gets the size that this element computed during the measure pass of the layout process. Inherited from Layoutable. |
| Height | Gets or sets the height of the element. Inherited from Layoutable. |
| HorizontalAlignment | Gets or sets the element's preferred horizontal alignment in its parent. Inherited from Layoutable. |
| IsArrangeValid | Gets a value indicating whether the control's layouts arrange is valid. Inherited from Layoutable. |
| IsMeasureValid | Gets a value indicating whether the control's layout measure is valid. Inherited from Layoutable. |
| Margin | Gets or sets the margin around the element. Inherited from Layoutable. |
| MaxHeight | Gets or sets the maximum height of the element. Inherited from Layoutable. |
| MaxWidth | Gets or sets the maximum width of the element. Inherited from Layoutable. |
| MinHeight | Gets or sets the minimum height of the element. Inherited from Layoutable. |
| MinWidth | Gets or sets the minimum width of the element. Inherited from Layoutable. |
| UseLayoutRounding | Gets or sets a value that determines whether the element should be snapped to pixel boundaries at layout time. Inherited from Layoutable. |
| VerticalAlignment | Gets or sets the element's preferred vertical alignment in its parent. Inherited from Layoutable. |
| Width | Gets or sets the width of the element. Inherited from Layoutable. |
| Bounds | Gets the bounds of the control relative to its parent. Inherited from Visual. |
| CacheMode | Gets or sets the cache mode of the visual. Inherited from Visual. |
| Clip | Gets or sets the geometry clip for this visual. Inherited from Visual. |
| ClipToBounds | Gets or sets a value indicating whether the control should be clipped to its bounds. Inherited from Visual. |
| Effect | Gets or sets the effect of the control. Inherited from Visual. |
| FlowDirection | Gets or sets the text flow direction. Inherited from Visual. |
| HasMirrorTransform | Gets or sets a value indicating whether to apply mirror transform on this control. Inherited from Visual. |
| IsEffectivelyVisible | Gets a value indicating whether this control and all its parents are visible. Inherited from Visual. |
| IsVisible | Gets or sets a value indicating whether this control is visible. Inherited from Visual. |
| Opacity | Gets or sets the opacity of the control. Inherited from Visual. |
| OpacityMask | Gets or sets the opacity mask of the control. Inherited from Visual. |
| RenderTransform | Gets or sets the render transform of the control. Inherited from Visual. |
| RenderTransformOrigin | Gets or sets the transform origin of the control. Inherited from Visual. |
| ZIndex | Gets or sets the Z index of the control. Inherited from Visual. |
| ActualThemeVariant | Gets the UI theme that is currently used by the element, which might be different than the RequestedThemeVariantProperty. Inherited from StyledElement. |
| Classes | Gets or sets the styled element's classes. Inherited from StyledElement. |
| DataContext | Gets or sets the control's data context. Inherited from StyledElement. |
| IsInitialized | Gets a value that indicates whether the element has finished initialization. Inherited from StyledElement. |
| Name | Gets or sets the name of the styled element. Inherited from StyledElement. |
| Parent | Gets the styled element's logical parent. Inherited from StyledElement. |
| Resources | Gets or sets the styled element's resource dictionary. Inherited from StyledElement. |
| StyleKey | Gets the type by which the element is styled. Inherited from StyledElement. |
| Styles | Gets the styles for the styled element. Inherited from StyledElement. |
| TemplatedParent | Gets the styled element whose lookless template this styled element is part of. Inherited from StyledElement. |
| Theme | Gets or sets the theme to be applied to the element. Inherited from StyledElement. |
| Transitions | Gets or sets the property transitions for the control. Inherited from Animatable. |
| Dispatcher | Returns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject. |
| Item | Inherited from AvaloniaObject. |
Cursor Property
Gets or sets associated mouse cursor.
public Avalonia.Input.Cursor Cursor { get; set; }
Focusable Property
Gets or sets a value indicating whether the control can receive focus.
public bool Focusable { get; set; }
GestureRecognizers Property
public Avalonia.Input.GestureRecognizers.GestureRecognizerCollection GestureRecognizers { get; set; }
IsEffectivelyEnabled Property
Gets a value indicating whether this control and all its parents are enabled.
public bool IsEffectivelyEnabled { get; set; }
Remarks
The Avalonia.Input.IInputElement.IsEnabled property is used to toggle the enabled state for individual controls. The Avalonia.Input.IInputElement.IsEffectivelyEnabled property takes into account the Avalonia.Input.IInputElement.IsEnabled value of this control and its parent controls.
IsEnabled Property
Gets or sets a value indicating whether the control is enabled for user interaction.
public bool IsEnabled { get; set; }
IsFocused Property
Gets a value indicating whether the control is focused.
public bool IsFocused { get; set; }
IsHitTestVisible Property
Gets or sets a value indicating whether the control is considered for hit testing.
public bool IsHitTestVisible { get; set; }
IsKeyboardFocusWithin Property
Gets a value indicating whether keyboard focus is anywhere within the element or its visual tree child elements.
public bool IsKeyboardFocusWithin { get; set; }
IsPointerOver Property
Gets a value indicating whether the pointer is currently over the control.
public bool IsPointerOver { get; set; }
IsTabStop Property
Gets or sets a value that indicates whether the control is included in tab navigation.
public bool IsTabStop { get; set; }
KeyBindings Property
public System.Collections.Generic.List<Avalonia.Input.KeyBinding> KeyBindings { get; set; }
TabIndex Property
Gets or sets a value that determines the order in which elements receive focus when the user navigates through controls by pressing the Tab key.
public int TabIndex { get; set; }
Fields
ContextCanceledEvent Field
Provides event data for the Avalonia.Input.InputElement.ContextCanceled event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Interactivity.RoutedEventArgs> ContextCanceledEvent
ContextRequestedEvent Field
Provides event data for the Avalonia.Input.InputElement.ContextRequested event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.ContextRequestedEventArgs> ContextRequestedEvent
CursorProperty Field
Gets or sets associated mouse cursor.
public Avalonia.StyledProperty<TValue><Avalonia.Input.Cursor> CursorProperty
DoubleTappedEvent Field
Defines the Avalonia.Input.InputElement.DoubleTapped event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.TappedEventArgs> DoubleTappedEvent
FocusableProperty Field
Defines the Avalonia.Input.InputElement.Focusable property.
public Avalonia.StyledProperty<TValue><bool> FocusableProperty
GettingFocusEvent Field
Defines the Avalonia.Input.InputElement.GettingFocus event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.FocusChangingEventArgs> GettingFocusEvent
GotFocusEvent Field
Defines the Avalonia.Input.InputElement.GotFocus event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.GotFocusEventArgs> GotFocusEvent
HoldingEvent Field
Defines the Avalonia.Input.InputElement.Holding event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.HoldingRoutedEventArgs> HoldingEvent
IsEffectivelyEnabledProperty Field
Defines the Avalonia.Input.InputElement.IsEffectivelyEnabled property.
public Avalonia.DirectProperty<TOwner,TValue><Avalonia.Input.InputElement, bool> IsEffectivelyEnabledProperty
IsEnabledProperty Field
Defines the Avalonia.Input.InputElement.IsEnabled property.
public Avalonia.StyledProperty<TValue><bool> IsEnabledProperty
IsFocusedProperty Field
Defines the Avalonia.Input.InputElement.IsFocused property.
public Avalonia.DirectProperty<TOwner,TValue><Avalonia.Input.InputElement, bool> IsFocusedProperty
IsHitTestVisibleProperty Field
Defines the Avalonia.Input.InputElement.IsHitTestVisible property.
public Avalonia.StyledProperty<TValue><bool> IsHitTestVisibleProperty
IsHoldWithMouseEnabledProperty Field
Defines the IsHoldWithMouseEnabled attached property.
public Avalonia.AttachedProperty<TValue><bool> IsHoldWithMouseEnabledProperty
IsHoldingEnabledProperty Field
Defines the IsHoldingEnabled attached property.
public Avalonia.AttachedProperty<TValue><bool> IsHoldingEnabledProperty
IsKeyboardFocusWithinProperty Field
Defines the Avalonia.Input.InputElement.IsKeyboardFocusWithin property.
public Avalonia.DirectProperty<TOwner,TValue><Avalonia.Input.InputElement, bool> IsKeyboardFocusWithinProperty
IsPointerOverProperty Field
Defines the Avalonia.Input.InputElement.IsPointerOver property.
public Avalonia.DirectProperty<TOwner,TValue><Avalonia.Input.InputElement, bool> IsPointerOverProperty
IsTabStopProperty Field
Defines the Avalonia.Input.InputElement.IsTabStop property.
public Avalonia.StyledProperty<TValue><bool> IsTabStopProperty
KeyDownEvent Field
Defines the Avalonia.Input.InputElement.KeyDown event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.KeyEventArgs> KeyDownEvent
KeyUpEvent Field
Defines the Avalonia.Input.InputElement.KeyUp event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.KeyEventArgs> KeyUpEvent
LosingFocusEvent Field
Defines the Avalonia.Input.InputElement.LosingFocus event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.FocusChangingEventArgs> LosingFocusEvent
LostFocusEvent Field
Defines the Avalonia.Input.InputElement.LostFocus event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Interactivity.RoutedEventArgs> LostFocusEvent
PinchEndedEvent Field
Defines the Avalonia.Input.InputElement.PinchEnded event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.PinchEndedEventArgs> PinchEndedEvent
PinchEvent Field
Defines the Avalonia.Input.InputElement.Pinch event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.PinchEventArgs> PinchEvent
PointerCaptureLostEvent Field
Defines the Avalonia.Input.InputElement.PointerCaptureLost routed event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.PointerCaptureLostEventArgs> PointerCaptureLostEvent
PointerEnteredEvent Field
Defines the Avalonia.Input.InputElement.PointerEntered event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.PointerEventArgs> PointerEnteredEvent
PointerExitedEvent Field
Defines the Avalonia.Input.InputElement.PointerExited event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.PointerEventArgs> PointerExitedEvent
PointerMovedEvent Field
Defines the Avalonia.Input.InputElement.PointerMoved event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.PointerEventArgs> PointerMovedEvent
PointerPressedEvent Field
Defines the Avalonia.Input.InputElement.PointerPressed event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.PointerPressedEventArgs> PointerPressedEvent
PointerReleasedEvent Field
Defines the Avalonia.Input.InputElement.PointerReleased event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.PointerReleasedEventArgs> PointerReleasedEvent
PointerTouchPadGestureMagnifyEvent Field
Defines the Avalonia.Input.InputElement.PointerTouchPadGestureMagnify event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.PointerDeltaEventArgs> PointerTouchPadGestureMagnifyEvent
PointerTouchPadGestureRotateEvent Field
Defines the Avalonia.Input.InputElement.PointerTouchPadGestureRotate event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.PointerDeltaEventArgs> PointerTouchPadGestureRotateEvent
PointerTouchPadGestureSwipeEvent Field
Defines the Avalonia.Input.InputElement.PointerTouchPadGestureSwipe event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.PointerDeltaEventArgs> PointerTouchPadGestureSwipeEvent
PointerWheelChangedEvent Field
Defines the Avalonia.Input.InputElement.PointerWheelChanged event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.PointerWheelEventArgs> PointerWheelChangedEvent
PullGestureEndedEvent Field
Defines the Avalonia.Input.InputElement.PullGestureEnded event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.PullGestureEndedEventArgs> PullGestureEndedEvent
PullGestureEvent Field
Defines the Avalonia.Input.InputElement.PullGesture event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.PullGestureEventArgs> PullGestureEvent
RightTappedEvent Field
Defines the Avalonia.Input.InputElement.RightTapped event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.TappedEventArgs> RightTappedEvent
ScrollGestureEndedEvent Field
Defines the Avalonia.Input.InputElement.ScrollGestureEnded event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.ScrollGestureEndedEventArgs> ScrollGestureEndedEvent
ScrollGestureEvent Field
Defines the Avalonia.Input.InputElement.ScrollGesture event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.ScrollGestureEventArgs> ScrollGestureEvent
ScrollGestureInertiaStartingEvent Field
Defines the Avalonia.Input.InputElement.ScrollGestureInertiaStarting event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.ScrollGestureInertiaStartingEventArgs> ScrollGestureInertiaStartingEvent
SwipeGestureEvent Field
Defines the Avalonia.Input.InputElement.SwipeGesture event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.SwipeGestureEventArgs> SwipeGestureEvent
TabIndexProperty Field
Defines the Avalonia.Input.InputElement.TabIndex property.
public Avalonia.StyledProperty<TValue><int> TabIndexProperty
TappedEvent Field
Defines the Avalonia.Input.InputElement.Tapped event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.TappedEventArgs> TappedEvent
TextInputEvent Field
Defines the Avalonia.Input.InputElement.TextInput event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.TextInputEventArgs> TextInputEvent
TextInputMethodClientRequestedEvent Field
Defines the Avalonia.Input.InputElement.TextInputMethodClientRequested event.
public Avalonia.Interactivity.RoutedEvent<TEventArgs><Avalonia.Input.TextInput.TextInputMethodClientRequestedEventArgs> TextInputMethodClientRequestedEvent
Events
| Name | Description |
|---|---|
| ContextCanceled | Occurs when the context input gesture continues into another gesture, to notify the element that the context flyout should not be opened. |
| ContextRequested | Occurs when the user has completed a context input gesture, such as a right-click. |
| DoubleTapped | Occurs when a double-tap gesture occurs on the control. |
| GettingFocus | Occurs before the control receives focus. |
| GotFocus | Occurs when the control receives focus. |
| Holding | Occurs when a hold gesture occurs on the control. |
| KeyDown | Occurs when a key is pressed while the control has focus. |
| KeyUp | Occurs when a key is released while the control has focus. |
| LosingFocus | Occurs before the control loses focus. |
| LostFocus | Occurs when the control loses focus. |
| Pinch | Occurs when a pinch gesture occurs on the control. |
| PinchEnded | Occurs when a pinch gesture ends on the control. |
| PointerCaptureLost | Occurs when the control or its child control loses the pointer capture for any reason, event will not be triggered for a parent control if capture was transferred to another child of that parent control. |
| PointerEntered | Occurs when the pointer enters the control. |
| PointerExited | Occurs when the pointer leaves the control. |
| PointerMoved | Occurs when the pointer moves over the control. |
| PointerPressed | Occurs when the pointer is pressed over the control. |
| PointerReleased | Occurs when the pointer is released over the control. |
| PointerTouchPadGestureMagnify | Occurs when a touchpad magnify gesture occurs on the control. |
| PointerTouchPadGestureRotate | Occurs when a touchpad rotate gesture occurs on the control. |
| PointerTouchPadGestureSwipe | Occurs when a touchpad swipe gesture occurs on the control. |
| PointerWheelChanged | Occurs when the mouse is scrolled over the control. |
| PullGesture | Occurs when a pull gesture occurs on the control. |
| PullGestureEnded | Occurs when a pull gesture ends on the control. |
| RightTapped | Occurs when a right tap gesture occurs on the control. |
| ScrollGesture | Occurs when a scroll gesture occurs on the control. |
| ScrollGestureEnded | Occurs when a scroll gesture ends on the control. |
| ScrollGestureInertiaStarting | Occurs when a scroll gesture inertia starts on the control. |
| SwipeGesture | Occurs when a swipe gesture occurs on the control. |
| Tapped | Occurs when a tap gesture occurs on the control. |
| TextInput | Occurs when a user typed some text while the control has focus. |
| TextInputMethodClientRequested | Occurs when an input element gains input focus and input method is looking for the corresponding client |
| EffectiveViewportChanged | Occurs when the element's effective viewport changes. Inherited from Layoutable. |
| LayoutUpdated | Occurs when a layout pass completes for the control. Inherited from Layoutable. |
| AttachedToVisualTree | Raised when the control is attached to a rooted visual tree. Inherited from Visual. |
| DetachedFromVisualTree | Raised when the control is detached from a rooted visual tree. Inherited from Visual. |
| ActualThemeVariantChanged | Raised when the theme variant is changed on the element or an ancestor of the element. Inherited from StyledElement. |
| AttachedToLogicalTree | Raised when the styled element is attached to a rooted logical tree. Inherited from StyledElement. |
| DataContextChanged | Occurs when the Avalonia.StyledElement.DataContext property changes. Inherited from StyledElement. |
| DetachedFromLogicalTree | Raised when the styled element is detached from a rooted logical tree. Inherited from StyledElement. |
| Initialized | Occurs when the styled element has finished initialization. Inherited from StyledElement. |
| ResourcesChanged | Occurs when a resource in this styled element or a parent styled element has changed. Inherited from StyledElement. |
| PropertyChanged | Raised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject. |
ContextCanceled Event
Occurs when the context input gesture continues into another gesture, to notify the element that the context flyout should not be opened.
public event EventHandler<Avalonia.Interactivity.RoutedEventArgs> ContextCanceled
ContextRequested Event
Occurs when the user has completed a context input gesture, such as a right-click.
public event EventHandler<Avalonia.Input.ContextRequestedEventArgs> ContextRequested
DoubleTapped Event
Occurs when a double-tap gesture occurs on the control.
public event EventHandler<Avalonia.Input.TappedEventArgs> DoubleTapped
GettingFocus Event
Occurs before the control receives focus.
public event EventHandler<Avalonia.Input.FocusChangingEventArgs> GettingFocus
GotFocus Event
Occurs when the control receives focus.
public event EventHandler<Avalonia.Input.GotFocusEventArgs> GotFocus
Holding Event
Occurs when a hold gesture occurs on the control.
public event EventHandler<Avalonia.Input.HoldingRoutedEventArgs> Holding
KeyDown Event
Occurs when a key is pressed while the control has focus.
public event EventHandler<Avalonia.Input.KeyEventArgs> KeyDown
KeyUp Event
Occurs when a key is released while the control has focus.
public event EventHandler<Avalonia.Input.KeyEventArgs> KeyUp
LosingFocus Event
Occurs before the control loses focus.
public event EventHandler<Avalonia.Input.FocusChangingEventArgs> LosingFocus
LostFocus Event
Occurs when the control loses focus.
public event EventHandler<Avalonia.Interactivity.RoutedEventArgs> LostFocus
Pinch Event
Occurs when a pinch gesture occurs on the control.
public event EventHandler<Avalonia.Input.PinchEventArgs> Pinch
PinchEnded Event
Occurs when a pinch gesture ends on the control.
public event EventHandler<Avalonia.Input.PinchEndedEventArgs> PinchEnded
PointerCaptureLost Event
Occurs when the control or its child control loses the pointer capture for any reason, event will not be triggered for a parent control if capture was transferred to another child of that parent control.
public event EventHandler<Avalonia.Input.PointerCaptureLostEventArgs> PointerCaptureLost
PointerEntered Event
Occurs when the pointer enters the control.
public event EventHandler<Avalonia.Input.PointerEventArgs> PointerEntered
PointerExited Event
Occurs when the pointer leaves the control.
public event EventHandler<Avalonia.Input.PointerEventArgs> PointerExited
PointerMoved Event
Occurs when the pointer moves over the control.
public event EventHandler<Avalonia.Input.PointerEventArgs> PointerMoved
PointerPressed Event
Occurs when the pointer is pressed over the control.
public event EventHandler<Avalonia.Input.PointerPressedEventArgs> PointerPressed
PointerReleased Event
Occurs when the pointer is released over the control.
public event EventHandler<Avalonia.Input.PointerReleasedEventArgs> PointerReleased
PointerTouchPadGestureMagnify Event
Occurs when a touchpad magnify gesture occurs on the control.
public event EventHandler<Avalonia.Input.PointerDeltaEventArgs> PointerTouchPadGestureMagnify
PointerTouchPadGestureRotate Event
Occurs when a touchpad rotate gesture occurs on the control.
public event EventHandler<Avalonia.Input.PointerDeltaEventArgs> PointerTouchPadGestureRotate
PointerTouchPadGestureSwipe Event
Occurs when a touchpad swipe gesture occurs on the control.
public event EventHandler<Avalonia.Input.PointerDeltaEventArgs> PointerTouchPadGestureSwipe
PointerWheelChanged Event
Occurs when the mouse is scrolled over the control.
public event EventHandler<Avalonia.Input.PointerWheelEventArgs> PointerWheelChanged
PullGesture Event
Occurs when a pull gesture occurs on the control.
public event EventHandler<Avalonia.Input.PullGestureEventArgs> PullGesture
PullGestureEnded Event
Occurs when a pull gesture ends on the control.
public event EventHandler<Avalonia.Input.PullGestureEndedEventArgs> PullGestureEnded
RightTapped Event
Occurs when a right tap gesture occurs on the control.
public event EventHandler<Avalonia.Input.TappedEventArgs> RightTapped
ScrollGesture Event
Occurs when a scroll gesture occurs on the control.
public event EventHandler<Avalonia.Input.ScrollGestureEventArgs> ScrollGesture
ScrollGestureEnded Event
Occurs when a scroll gesture ends on the control.
public event EventHandler<Avalonia.Input.ScrollGestureEndedEventArgs> ScrollGestureEnded
ScrollGestureInertiaStarting Event
Occurs when a scroll gesture inertia starts on the control.
public event EventHandler<Avalonia.Input.ScrollGestureInertiaStartingEventArgs> ScrollGestureInertiaStarting
SwipeGesture Event
Occurs when a swipe gesture occurs on the control.
public event EventHandler<Avalonia.Input.SwipeGestureEventArgs> SwipeGesture
Tapped Event
Occurs when a tap gesture occurs on the control.
public event EventHandler<Avalonia.Input.TappedEventArgs> Tapped
TextInput Event
Occurs when a user typed some text while the control has focus.
public event EventHandler<Avalonia.Input.TextInputEventArgs> TextInput
TextInputMethodClientRequested Event
Occurs when an input element gains input focus and input method is looking for the corresponding client
public event EventHandler<Avalonia.Input.TextInput.TextInputMethodClientRequestedEventArgs> TextInputMethodClientRequested