UIElement Class

Definition

UIElement is a base class for most of the Windows Runtime UI objects that have visual appearance and can process basic input as part of your app's user interface.

Equivalent WinUI class: Microsoft.UI.Xaml.UIElement.

public ref class UIElement : DependencyObject
public ref class UIElement : DependencyObject, IAnimationObject
public ref class UIElement : DependencyObject, IAnimationObject, IVisualElement
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class UIElement : DependencyObject
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class UIElement : DependencyObject, IAnimationObject
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class UIElement : DependencyObject, IAnimationObject, IVisualElement
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class UIElement : DependencyObject
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class UIElement : DependencyObject, IAnimationObject
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class UIElement : DependencyObject, IAnimationObject, IVisualElement
Public Class UIElement
Inherits DependencyObject
Public Class UIElement
Inherits DependencyObject
Implements IAnimationObject
Public Class UIElement
Inherits DependencyObject
Implements IAnimationObject, IVisualElement
Inheritance
Derived
Attributes
Implements

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

UIElement is a base element: it's a class that many other Windows Runtime classes inherit from in order to support the XAML UI element model. Properties, methods and events that UIElement defines are inherited by hundreds of other Windows Runtime classes.

Although UIElement defines the events for focus reporting (@"Windows.UI.Xaml.UIElement.GotFocus?text=GotFocus", LostFocus ), UIElement does not define an API for programmatically setting the focus. This capability is defined by the Control class.

UIElement does not expose a public constructor. Typically, you don't derive classes from either UIElement or FrameworkElement directly. More typically used base classes for derived custom classes are these classes:

  • Specific controls that are not sealed (for example, TextBox )
  • Control base classes (@"Windows.UI.Xaml.Controls.Control?text=Control", ContentControl, UserControl )
  • Navigation elements (@"Windows.UI.Xaml.Controls.Page?text=Page", Frame )
  • Panel classes (the base class Panel, or specific non-sealed implementations such as Grid )

The UIElement class is used as the type parameter of many properties and methods in the Windows Runtime API. For example, the Child property of Border takes a single UIElement, which represents the element that the Border is drawn around. You can provide any UIElement-derived element for such a property, including custom controls that you define.

The UIElementCollection class provides a strongly typed collection of UIElement items. UIElementCollection is used as a type for properties of objects that contain several child elements, for example for the Children property of any Panel class.

UIElement API and features

UIElement extends DependencyObject, which is another base element, and adds support for various Windows Runtime feature areas.

Input, and events for responding to user interaction

Much of the input behavior for visible elements in a UI is defined in the UIElement class. This includes the events for keyboard, mouse, touch, drag-drop, and focus interactions. For more info, see Handle pointer input, Keyboard interactions, and Custom user interactions.

Prominent API of UIElement that support input and user interaction:

Gestures and manipulations

Gestures and manipulations are also a way to handle input and user interaction. The API are listed out separately here because these events represent how the system interacts with device-level input actions and interprets them as a user interaction. Manipulations are a way to handle dynamic multi-touch interactions such as pinching and stretching. Together, the gestures and manipulations provide the touch patterns for touch interaction with UWP app. For more info, see Custom user interactions and Touch interaction design.

Prominent API of UIElement that support gestures and manipulations:

Basic appearance

The Visibility and Opacity properties are frequently used to adjust the appearance of an element in your UI, especially within styles, templates, and visual states. The Clip, RenderTransform, and Transitions properties are each useful for producing interactions and different looks for your UI elements.

Basic layout

The UIElement class provides a starting point for layout characteristics with properties such as DesiredSize and the Arrange and Measure methods. FrameworkElement adds more layout capabilities. For more info, see Define layouts with XAML and FrameworkElement.

Routed events

Most of the input events of UIElement are routed events. A routed event enables a built-in event handling notification system, so that a parent object can handle input events from child objects in the object tree if the event remains unhandled. This input event behavior is useful for input area grouping, and for control compositing. For more info, see Events and routed events overview.

Prominent API of UIElement that support routed events: AddHandler, RemoveHandler, *Event properties.

Other platform support

UIElement dependency properties

Many of the read-write properties of the UIElement base element class are dependency properties. Dependency properties support some of the basic programming model features for a UWP app using C++, C#, or Visual Basic, such as styles and templates, data binding, XAML resource references, and property-changed logic. For more info on dependency properties and the features they support, see Dependency properties overview.

UIElement derived classes

The only Windows Runtime class that derives directly from UIElement is FrameworkElement. For a list of the classes that derive from FrameworkElement, see the "FrameworkElement derived classes" section of the FrameworkElement reference topic.

Version history

Windows version SDK version Value added
1607 14393 AccessKey
1607 14393 AccessKeyDisplayDismissed
1607 14393 AccessKeyDisplayRequested
1607 14393 AccessKeyInvoked
1607 14393 AccessKeyScopeOwner
1607 14393 ContextCanceled
1607 14393 ContextFlyout
1607 14393 ContextRequested
1607 14393 ExitDisplayModeOnAccessKeyInvoked
1607 14393 IsAccessKeyScope
1703 15063 GettingFocus
1703 15063 GettingFocusEvent
1703 15063 HighContrastAdjustment
1703 15063 KeyTipHorizontalOffset
1703 15063 KeyTipPlacementMode
1703 15063 KeyTipVerticalOffset
1703 15063 Lights
1703 15063 LosingFocus
1703 15063 LosingFocusEvent
1703 15063 NoFocusCandidateFound
1703 15063 NoFocusCandidateFoundEvent
1703 15063 StartBringIntoView
1703 15063 StartBringIntoView(BringIntoViewOptions)
1703 15063 TabFocusNavigation
1703 15063 XYFocusDownNavigationStrategy
1703 15063 XYFocusKeyboardNavigation
1703 15063 XYFocusLeftNavigationStrategy
1703 15063 XYFocusRightNavigationStrategy
1703 15063 XYFocusUpNavigationStrategy
1709 16299 CharacterReceived
1709 16299 CharacterReceivedEvent
1709 16299 GetChildrenInTabFocusOrder
1709 16299 KeyboardAccelerators
1709 16299 OnProcessKeyboardAccelerators
1709 16299 PreviewKeyDown
1709 16299 PreviewKeyDownEvent
1709 16299 PreviewKeyUp
1709 16299 PreviewKeyUpEvent
1709 16299 ProcessKeyboardAccelerators
1709 16299 TryInvokeKeyboardAccelerator
1803 17134 BringIntoViewRequested
1803 17134 BringIntoViewRequestedEvent
1803 17134 ContextRequestedEvent
1803 17134 KeyboardAcceleratorPlacementMode
1803 17134 KeyboardAcceleratorPlacementTarget
1803 17134 KeyTipTarget
1803 17134 OnBringIntoViewRequested
1803 17134 OnKeyboardAcceleratorInvoked
1803 17134 RegisterAsScrollPort
1809 17763 CanBeScrollAnchor
1809 17763 CenterPoint
1809 17763 OpacityTransition
1809 17763 PopulatePropertyInfo
1809 17763 PopulatePropertyInfoOverride
1809 17763 Rotation
1809 17763 RotationAxis
1809 17763 RotationTransition
1809 17763 Scale
1809 17763 ScaleTransition
1809 17763 StartAnimation
1809 17763 StopAnimation
1809 17763 TransformMatrix
1809 17763 Translation
1809 17763 TranslationTransition
1903 18362 ActualOffset
1903 18362 ActualSize
1903 18362 Shadow
1903 18362 UIContext
1903 18362 XamlRoot

Properties

AccessKey

Gets or sets the access key (mnemonic) for this element.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.AccessKey.

AccessKeyProperty

Identifies for the AccessKey dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.AccessKeyProperty.

AccessKeyScopeOwner

Gets or sets a source element that provides the access key scope for this element, even if it's not in the visual tree of the source element.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.AccessKeyScopeOwner.

AccessKeyScopeOwnerProperty

Identifies for the AccessKeyScopeOwner dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.AccessKeyScopeOwnerProperty.

ActualOffset

Gets the position of this UIElement, relative to its parent, computed during the arrange pass of the layout process.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.ActualOffset.

ActualSize

Gets the size that this UIElement computed during the arrange pass of the layout process.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.ActualSize.

AllowDrop

Gets or sets a value that determines whether this UIElement can be a drop target for purposes of drag-and-drop operations.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.AllowDrop.

AllowDropProperty

Identifies the AllowDrop dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.AllowDropProperty.

BringIntoViewRequestedEvent

Gets the identifier for the BringIntoViewRequested routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.BringIntoViewRequestedEvent.

CacheMode

Gets or sets a value that indicates that rendered content should be cached as a composited bitmap when possible.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.CacheMode.

CacheModeProperty

Identifies the CacheMode dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.CacheModeProperty.

CanBeScrollAnchor

Gets or sets a value that indicates whether the UIElement can be a candidate for scroll anchoring.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.CanBeScrollAnchor.

CanBeScrollAnchorProperty

Identifies the CanBeScrollAnchor dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.CanBeScrollAnchorProperty.

CanDrag

Gets or sets a value that indicates whether the element can be dragged as data in a drag-and-drop operation.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.CanDrag.

CanDragProperty

Identifies the CanDrag dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.CanDragProperty.

CenterPoint

Gets or sets the center point of the element, which is the point about which rotation or scaling occurs. Affects the rendering position of the element.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.CenterPoint.

CharacterReceivedEvent

Gets the identifier for the CharacterReceived routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.CharacterReceivedEvent.

Clip

Gets or sets the RectangleGeometry used to define the outline of the contents of a UIElement.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.Clip.

ClipProperty

Identifies the Clip dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.ClipProperty.

CompositeMode

Gets or sets a property that declares alternate composition and blending modes for the element in its parent layout and window. This is relevant for elements that are involved in a mixed XAML / Microsoft DirectX UI.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.CompositeMode.

CompositeModeProperty

Identifies the CompositeMode dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.CompositeModeProperty.

ContextFlyout

Gets or sets the flyout associated with this element.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.ContextFlyout.

ContextFlyoutProperty

Identifies for the ContextFlyout dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.ContextFlyoutProperty.

ContextRequestedEvent

Gets the identifier for the ContextRequested routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.ContextRequestedEvent.

DesiredSize

Gets the size that this UIElement computed during the measure pass of the layout process.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.DesiredSize.

Dispatcher

Gets the CoreDispatcher that this object is associated with. The CoreDispatcher represents a facility that can access the DependencyObject on the UI thread even if the code is initiated by a non-UI thread.

Equivalent WinUI property: Microsoft.UI.Xaml.DependencyObject.Dispatcher.

(Inherited from DependencyObject)
DoubleTappedEvent

Gets the identifier for the DoubleTapped routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.DoubleTappedEvent.

DragEnterEvent

Gets the identifier for the DragEnter routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.DragEnterEvent.

DragLeaveEvent

Gets the identifier for the DragLeave routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.DragLeaveEvent.

DragOverEvent

Gets the identifier for the DragOver routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.DragOverEvent.

DropEvent

Gets the identifier for the Drop routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.DropEvent.

ExitDisplayModeOnAccessKeyInvoked

Gets or sets a value that specifies whether the access key display is dismissed when an access key is invoked.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.ExitDisplayModeOnAccessKeyInvoked.

ExitDisplayModeOnAccessKeyInvokedProperty

Identifies the ExitDisplayModeOnAccessKeyInvoked  dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.ExitDisplayModeOnAccessKeyInvokedProperty.

GettingFocusEvent

Gets the identifier for the GettingFocus routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.GettingFocusEvent.

HighContrastAdjustment

Gets or sets a value that indicates whether the framework automatically adjusts the element's visual properties when high contrast themes are enabled.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.HighContrastAdjustment.

HighContrastAdjustmentProperty

Identifies the HighContrastAdjustment dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.HighContrastAdjustmentProperty.

HoldingEvent

Gets the identifier for the Holding routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.HoldingEvent.

IsAccessKeyScope

Gets or sets a value that indicates whether an element defines its own access key scope.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.IsAccessKeyScope.

IsAccessKeyScopeProperty

Identifies for the IsAccessKeyScope dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.IsAccessKeyScopeProperty.

IsDoubleTapEnabled

Gets or sets a value that determines whether the DoubleTapped event can originate from that element.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.IsDoubleTapEnabled.

IsDoubleTapEnabledProperty

Identifies the IsDoubleTapEnabled dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.IsDoubleTapEnabledProperty.

IsHitTestVisible

Gets or sets whether the contained area of this UIElement can return true values for hit testing.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.IsHitTestVisible.

IsHitTestVisibleProperty

Identifies the IsHitTestVisible dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.IsHitTestVisibleProperty.

IsHoldingEnabled

Gets or sets a value that determines whether the Holding event can originate from that element.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.IsHoldingEnabled.

IsHoldingEnabledProperty

Identifies the IsHoldingEnabled dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.IsHoldingEnabledProperty.

IsRightTapEnabled

Gets or sets a value that determines whether the RightTapped event can originate from that element.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.IsRightTapEnabled.

IsRightTapEnabledProperty

Identifies the IsRightTapEnabled dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.IsRightTapEnabledProperty.

IsTapEnabled

Gets or sets a value that determines whether the Tapped event can originate from that element.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.IsTapEnabled.

IsTapEnabledProperty

Identifies the IsTapEnabled dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.IsTapEnabledProperty.

KeyboardAcceleratorPlacementMode

Gets or sets a value that indicates whether the control tooltip displays the key combination for it's associated keyboard accelerator.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.KeyboardAcceleratorPlacementMode.

KeyboardAcceleratorPlacementModeProperty

Identifies the KeyboardAcceleratorPlacementMode dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.KeyboardAcceleratorPlacementModeProperty.

KeyboardAcceleratorPlacementTarget

Gets or sets a value that indicates the control tooltip that displays the accelerator key combination.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.KeyboardAcceleratorPlacementTarget.

KeyboardAcceleratorPlacementTargetProperty

Identifies the KeyboardAcceleratorPlacementTarget dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.KeyboardAcceleratorPlacementTargetProperty.

KeyboardAccelerators

Gets the collection of key combinations that invoke an action using the keyboard.

Accelerators are typically assigned to buttons or menu items.

Example of a menu showing keyboard accelerators for various menu items
Example of a menu showing keyboard accelerators for various menu items

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.KeyboardAccelerators.

KeyDownEvent

Gets the identifier for the KeyDown routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.KeyDownEvent.

KeyTipHorizontalOffset

Gets or sets a value that indicates how far left or right the Key Tip is placed in relation to the UIElement.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.KeyTipHorizontalOffset.

KeyTipHorizontalOffsetProperty

Identifies the KeyTipHorizontalOffset dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.KeyTipHorizontalOffsetProperty.

KeyTipPlacementMode

Gets or sets a value that indicates where the access key Key Tip is placed in relation to the boundary of the UIElement.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.KeyTipPlacementMode.

KeyTipPlacementModeProperty

Identifies the KeyTipPlacementMode dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.KeyTipPlacementModeProperty.

KeyTipTarget

Gets or sets a value that indicates the element targeted by the access key Key Tip.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.KeyTipTarget.

KeyTipTargetProperty

Identifies the KeyTipTarget dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.KeyTipTargetProperty.

KeyTipVerticalOffset

Gets or sets a value that indicates how far up or down the Key Tip is placed in relation to the UI element.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.KeyTipVerticalOffset.

KeyTipVerticalOffsetProperty

Identifies the KeyTipVerticalOffset dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.KeyTipVerticalOffsetProperty.

KeyUpEvent

Gets the identifier for the KeyUp routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.KeyUpEvent.

Lights

Gets the collection of XamlLight objects attached to this element.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.Lights.

LightsProperty

Identifies the Lights dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.LightsProperty.

LosingFocusEvent

Gets the identifier for the LosingFocus routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.LosingFocusEvent.

ManipulationCompletedEvent

Gets the identifier for the ManipulationCompleted routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.ManipulationCompletedEvent.

ManipulationDeltaEvent

Gets the identifier for the ManipulationDelta routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.ManipulationDeltaEvent.

ManipulationInertiaStartingEvent

Gets the identifier for the ManipulationInertiaStarting routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.ManipulationInertiaStartingEvent.

ManipulationMode

Gets or sets the ManipulationModes value used for UIElement behavior and interaction with gestures. Setting this value enables handling the manipulation events from this element in app code.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.ManipulationMode.

ManipulationModeProperty

Identifies the ManipulationMode dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.ManipulationModeProperty.

ManipulationStartedEvent

Gets the identifier for the ManipulationStarted routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.ManipulationStartedEvent.

ManipulationStartingEvent

Gets the identifier for the ManipulationStarting routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.ManipulationStartingEvent.

NoFocusCandidateFoundEvent

Gets the identifier for the NoFocusCandidateFound routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.NoFocusCandidateFoundEvent.

Opacity

Gets or sets the degree of the object's opacity.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.Opacity.

OpacityProperty

Identifies the IsHitTestVisible dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.OpacityProperty.

OpacityTransition

Gets or sets the ScalarTransition that animates changes to the Opacity property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.OpacityTransition.

PointerCanceledEvent

Gets the identifier for the PointerCanceled routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.PointerCanceledEvent.

PointerCaptureLostEvent

Gets the identifier for the PointerCaptureLost routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.PointerCaptureLostEvent.

PointerCaptures

Gets the set of all captured pointers, represented as Pointer values.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.PointerCaptures.

PointerCapturesProperty

Identifies the PointerCaptures dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.PointerCapturesProperty.

PointerEnteredEvent

Gets the identifier for the PointerEntered routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.PointerEnteredEvent.

PointerExitedEvent

Gets the identifier for the PointerExited routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.PointerExitedEvent.

PointerMovedEvent

Gets the identifier for the PointerMoved routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.PointerMovedEvent.

PointerPressedEvent

Gets the identifier for the PointerPressed routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.PointerPressedEvent.

PointerReleasedEvent

Gets the identifier for the PointerReleased routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.PointerReleasedEvent.

PointerWheelChangedEvent

Gets the identifier for the PointerWheelChanged routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.PointerWheelChangedEvent.

PreviewKeyDownEvent

Gets the identifier for the PreviewKeyDown routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.PreviewKeyDownEvent.

PreviewKeyUpEvent

Gets the identifier for the PreviewKeyUp routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.PreviewKeyUpEvent.

Projection

Gets or sets the perspective projection (3-D effect) to apply when rendering this element.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.Projection.

ProjectionProperty

Identifies the Projection dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.ProjectionProperty.

RenderSize

Gets the final render size of a UIElement. Use is not recommended, see Remarks.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.RenderSize.

RenderTransform

Gets or sets transform information that affects the rendering position of a UIElement.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.RenderTransform.

RenderTransformOrigin

Gets or sets the origin point of any possible render transform declared by RenderTransform, relative to the bounds of the UIElement.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.RenderTransformOrigin.

RenderTransformOriginProperty

Identifies the RenderTransformOrigin dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.RenderTransformOriginProperty.

RenderTransformProperty

Identifies the RenderTransform dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.RenderTransformProperty.

RightTappedEvent

Gets the identifier for the RightTapped routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.RightTappedEvent.

Rotation

Gets or sets the angle of clockwise rotation, in degrees. Rotates relative to the RotationAxis and the CenterPoint. Affects the rendering position of the element.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.Rotation.

RotationAxis

Gets or sets the axis to rotate the element around.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.RotationAxis.

RotationTransition

Gets or sets the ScalarTransition that animates changes to the Rotation property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.RotationTransition.

Scale

Gets or sets the scale of the element. Scales relative to the element's CenterPoint. Affects the rendering position of the element.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.Scale.

ScaleTransition

Gets or sets the Vector3Transition that animates changes to the Scale property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.ScaleTransition.

Shadow

Gets or sets the shadow effect cast by the element.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.Shadow.

ShadowProperty

Identifies the Shadow dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.ShadowProperty.

TabFocusNavigation

Gets or sets a value that modifies how tabbing and TabIndex work for this control.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.TabFocusNavigation.

TabFocusNavigationProperty

Identifies the TabFocusNavigation dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.TabFocusNavigationProperty.

TappedEvent

Gets the identifier for the Tapped routed event.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.TappedEvent.

Transform3D

Gets or sets the 3-D transform effect to apply when rendering this element.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.Transform3D.

Transform3DProperty

Identifies the Transform3D dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.Transform3DProperty.

TransformMatrix

Gets or sets the transformation matrix to apply to the element.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.TransformMatrix.

Transitions

Gets or sets the collection of Transition style elements that apply to a UIElement.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.Transitions.

TransitionsProperty

Identifies the Transitions dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.TransitionsProperty.

Translation

Gets or sets the x, y, and z rendering position of the element.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.Translation.

TranslationTransition

Gets or sets the Vector3Transition that animates changes to the Translation property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.TranslationTransition.

UIContext

Gets the context identifier for the element.

UseLayoutRounding

Gets or sets a value that determines whether rendering for the object and its visual subtree should use rounding behavior that aligns rendering to whole pixels.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.UseLayoutRounding.

UseLayoutRoundingProperty

Identifies the UseLayoutRounding dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.UseLayoutRoundingProperty.

Visibility

Gets or sets the visibility of a UIElement. A UIElement that is not visible is not rendered and does not communicate its desired size to layout.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.Visibility.

VisibilityProperty

Identifies the Visibility dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.VisibilityProperty.

XamlRoot

Gets or sets the XamlRoot in which this element is being viewed.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.XamlRoot.

XYFocusDownNavigationStrategy

Gets or sets a value that specifies the strategy used to determine the target element of a down navigation.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.XYFocusDownNavigationStrategy.

XYFocusDownNavigationStrategyProperty

Identifies the XYFocusDownNavigationStrategy dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.XYFocusDownNavigationStrategyProperty.

XYFocusKeyboardNavigation

Gets or sets a value that enables or disables navigation using the keyboard directional arrows.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.XYFocusKeyboardNavigation.

XYFocusKeyboardNavigationProperty

Identifies the XYFocusKeyboardNavigation dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.XYFocusKeyboardNavigationProperty.

XYFocusLeftNavigationStrategy

Gets or sets a value that specifies the strategy used to determine the target element of a left navigation.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.XYFocusLeftNavigationStrategy.

XYFocusLeftNavigationStrategyProperty

Identifies the XYFocusLeftNavigationStrategy dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.XYFocusLeftNavigationStrategyProperty.

XYFocusRightNavigationStrategy

Gets or sets a value that specifies the strategy used to determine the target element of a right navigation.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.XYFocusRightNavigationStrategy.

XYFocusRightNavigationStrategyProperty

Identifies the XYFocusRightNavigationStrategy dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.XYFocusRightNavigationStrategyProperty.

XYFocusUpNavigationStrategy

Gets or sets a value that specifies the strategy used to determine the target element of an up navigation.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.XYFocusUpNavigationStrategy.

XYFocusUpNavigationStrategyProperty

Identifies the XYFocusUpNavigationStrategy dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.XYFocusUpNavigationStrategyProperty.

Methods

AddHandler(RoutedEvent, Object, Boolean)

Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. Specify handledEventsToo as true to have the provided handler be invoked even if the event is handled elsewhere.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.AddHandler.

Arrange(Rect)

Positions child objects and determines a size for a UIElement. Parent objects that implement custom layout for their child elements should call this method from their layout override implementations to form a recursive layout update.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.Arrange.

CancelDirectManipulations()

Cancels ongoing direct manipulation processing (system-defined panning/zooming) on any ScrollViewer parent that contains the current UIElement.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.CancelDirectManipulations.

CapturePointer(Pointer)

Sets pointer capture to a UIElement. Once captured, only the element that has capture will fire pointer-related events.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.CapturePointer.

ClearValue(DependencyProperty)

Clears the local value of a dependency property.

Equivalent WinUI method: Microsoft.UI.Xaml.DependencyObject.ClearValue.

(Inherited from DependencyObject)
FindSubElementsForTouchTargeting(Point, Rect)

Enables a UIElement subclass to expose child elements that assist with resolving touch targeting.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.FindSubElementsForTouchTargeting.

GetAnimationBaseValue(DependencyProperty)

Returns any base value established for a dependency property, which would apply in cases where an animation is not active.

Equivalent WinUI method: Microsoft.UI.Xaml.DependencyObject.GetAnimationBaseValue.

(Inherited from DependencyObject)
GetChildrenInTabFocusOrder()

Enables a UIElement subclass to expose child elements that take part in Tab focus.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.GetChildrenInTabFocusOrder.

GetValue(DependencyProperty)

Returns the current effective value of a dependency property from a DependencyObject.

Equivalent WinUI method: Microsoft.UI.Xaml.DependencyObject.GetValue.

(Inherited from DependencyObject)
InvalidateArrange()

Invalidates the arrange state (layout) for a UIElement. After the invalidation, the UIElement will have its layout updated, which will occur asynchronously.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.InvalidateArrange.

InvalidateMeasure()

Invalidates the measurement state (layout) for a UIElement.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.InvalidateMeasure.

Measure(Size)

Updates the DesiredSize of a UIElement. Typically, objects that implement custom layout for their layout children call this method from their own MeasureOverride implementations to form a recursive layout update.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.Measure.

OnBringIntoViewRequested(BringIntoViewRequestedEventArgs)

Called before the BringIntoViewRequested event occurs. Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.OnBringIntoViewRequested.

OnCreateAutomationPeer()

When implemented in a derived class, returns class-specific AutomationPeer implementations for the Microsoft UI Automation infrastructure.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.OnCreateAutomationPeer.

OnDisconnectVisualChildren()

Override this method to implement how layout and logic should behave when items are removed from a class-specific content or children property.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.OnDisconnectVisualChildren.

OnKeyboardAcceleratorInvoked(KeyboardAcceleratorInvokedEventArgs)

Called when a keyboard shortcut (or accelerator) is processed in your app. Override this method to handle how your app responds when a keyboard accelerator is invoked.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.OnKeyboardAcceleratorInvoked.

OnProcessKeyboardAccelerators(ProcessKeyboardAcceleratorEventArgs)

Called just before a keyboard shortcut (or accelerator) is processed in your app. Invoked whenever application code or internal processes call ProcessKeyboardAccelerators. Override this method to influence the default accelerator handling.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.OnProcessKeyboardAccelerators.

PopulatePropertyInfo(String, AnimationPropertyInfo)

Defines a property that can be animated.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.PopulatePropertyInfo.

PopulatePropertyInfoOverride(String, AnimationPropertyInfo)

When overridden in a derived class, defines a property that can be animated.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.PopulatePropertyInfoOverride.

ReadLocalValue(DependencyProperty)

Returns the local value of a dependency property, if a local value is set.

Equivalent WinUI method: Microsoft.UI.Xaml.DependencyObject.ReadLocalValue.

(Inherited from DependencyObject)
RegisterAsScrollPort(UIElement)

Registers an element as representing a scrollable viewport.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.RegisterAsScrollPort.

RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

Registers a notification function for listening to changes to a specific DependencyProperty on this DependencyObject instance.

Equivalent WinUI method: Microsoft.UI.Xaml.DependencyObject.RegisterPropertyChangedCallback.

(Inherited from DependencyObject)
ReleasePointerCapture(Pointer)

Releases pointer captures for capture of one specific pointer by this UIElement.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.ReleasePointerCapture.

ReleasePointerCaptures()

Releases all pointer captures held by this element.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.ReleasePointerCaptures.

RemoveHandler(RoutedEvent, Object)

Removes the specified routed event handler from this UIElement. Typically the handler in question was added by AddHandler.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.RemoveHandler.

SetValue(DependencyProperty, Object)

Sets the local value of a dependency property on a DependencyObject.

Equivalent WinUI method: Microsoft.UI.Xaml.DependencyObject.SetValue.

(Inherited from DependencyObject)
StartAnimation(ICompositionAnimationBase)

Begins the specified animation on the element.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.StartAnimation.

StartBringIntoView()

Initiates a request to the XAML framework to bring the element into view within any scrollable regions it is contained within.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.StartBringIntoView.

StartBringIntoView(BringIntoViewOptions)

Initiates a request to the XAML framework to bring the element into view using the specified options.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.StartBringIntoView.

StartDragAsync(PointerPoint)

Initiates a drag-and-drop operation.

StopAnimation(ICompositionAnimationBase)

Stops the specified animation on the element.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.StopAnimation.

TransformToVisual(UIElement)

Returns a transform object that can be used to transform coordinates from the UIElement to the specified object.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.TransformToVisual.

TryInvokeKeyboardAccelerator(ProcessKeyboardAcceleratorEventArgs)

Attempts to invoke a keyboard shortcut (or accelerator) by searching the entire visual tree of the UIElement for the shortcut.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.TryInvokeKeyboardAccelerator.

TryStartDirectManipulation(Pointer)

Resumes direct manipulation processing (system-defined panning/zooming) on any ScrollViewer parent that contains the current UIElement.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.TryStartDirectManipulation.

UnregisterPropertyChangedCallback(DependencyProperty, Int64)

Cancels a change notification that was previously registered by calling RegisterPropertyChangedCallback.

Equivalent WinUI method: Microsoft.UI.Xaml.DependencyObject.UnregisterPropertyChangedCallback.

(Inherited from DependencyObject)
UpdateLayout()

Ensures that all positions of child objects of a UIElement are properly updated for layout.

Equivalent WinUI method: Microsoft.UI.Xaml.UIElement.UpdateLayout.

Events

AccessKeyDisplayDismissed

Occurs when access keys should no longer be displayed.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.AccessKeyDisplayDismissed.

AccessKeyDisplayRequested

Occurs when the user requests that access keys be displayed.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.AccessKeyDisplayRequested.

AccessKeyInvoked

Occurs when a user completes an access key sequence.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.AccessKeyInvoked.

BringIntoViewRequested

Occurs when StartBringIntoView is called on this element or one of its descendants.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.BringIntoViewRequested.

CharacterReceived

Occurs when a single, composed character is received by the input queue.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.CharacterReceived.

ContextCanceled

Occurs when a context input gesture continues into a manipulation gesture, to notify the element that the context flyout should not be opened.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.ContextCanceled.

ContextRequested

Occurs when the user has completed a context input gesture, such as a right-click.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.ContextRequested.

DoubleTapped

Occurs when an otherwise unhandled DoubleTap interaction occurs over the hit test area of this element.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.DoubleTapped.

DragEnter

Occurs when the input system reports an underlying drag event with this element as the target.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.DragEnter.

DragLeave

Occurs when the input system reports an underlying drag event with this element as the origin.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.DragLeave.

DragOver

Occurs when the input system reports an underlying drag event with this element as the potential drop target.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.DragOver.

DragStarting

Occurs when a drag operation is initiated.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.DragStarting.

Drop

Occurs when the input system reports an underlying drop event with this element as the drop target.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.Drop.

DropCompleted

Occurs when a drag-and-drop operation with this element as the source is ended.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.DropCompleted.

GettingFocus

Occurs before a UIElement receives focus. This event is raised synchronously to ensure focus isn't moved while the event is bubbling.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.GettingFocus.

GotFocus

Occurs when a UIElement receives focus. This event is raised asynchronously, so focus can move again before bubbling is complete.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.GotFocus.

Holding

Occurs when an otherwise unhandled Hold interaction occurs over the hit test area of this element.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.Holding.

KeyDown

Occurs when a keyboard key is pressed while the UIElement has focus.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.KeyDown.

KeyUp

Occurs when a keyboard key is released while the UIElement has focus.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.KeyUp.

LosingFocus

Occurs before a UIElement loses focus. This event is raised synchronously to ensure focus isn't moved while the event is bubbling.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.LosingFocus.

LostFocus

Occurs when a UIElement loses focus. This event is raised asynchronously, so focus can move again before bubbling is complete.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.LostFocus.

ManipulationCompleted

Occurs when a manipulation on the UIElement is complete.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.ManipulationCompleted.

ManipulationDelta

Occurs when the input device changes position during a manipulation.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.ManipulationDelta.

ManipulationInertiaStarting

Occurs when the input device loses contact with the UIElement object during a manipulation and inertia begins.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.ManipulationInertiaStarting.

ManipulationStarted

Occurs when an input device begins a manipulation on the UIElement.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.ManipulationStarted.

ManipulationStarting

Occurs when the manipulation processor is first created.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.ManipulationStarting.

NoFocusCandidateFound

Occurs when a user attempts to move focus (via tab or directional arrows), but focus doesn't move because no focus candidate is found in the direction of movement.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.NoFocusCandidateFound.

PointerCanceled

Occurs when a pointer that made contact abnormally loses contact.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.PointerCanceled.

PointerCaptureLost

Occurs when pointer capture previously held by this element moves to another element or elsewhere.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.PointerCaptureLost.

PointerEntered

Occurs when a pointer enters the hit test area of this element.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.PointerEntered.

PointerExited

Occurs when a pointer leaves the hit test area of this element.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.PointerExited.

PointerMoved

Occurs when a pointer moves while the pointer remains within the hit test area of this element.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.PointerMoved.

PointerPressed

Occurs when the pointer device initiates a Press action within this element.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.PointerPressed.

PointerReleased

Occurs when the pointer device that previously initiated a Press action is released, while within this element. Note that the end of a Press action is not guaranteed to fire a PointerReleased event; other events may fire instead. For more info, see Remarks.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.PointerReleased.

PointerWheelChanged

Occurs when the delta value of a pointer wheel changes.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.PointerWheelChanged.

PreviewKeyDown

Occurs when a keyboard key is pressed while the UIElement has focus.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.PreviewKeyDown.

PreviewKeyUp

Occurs when a keyboard key is released while the UIElement has focus.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.PreviewKeyUp.

ProcessKeyboardAccelerators

Occurs when a keyboard shortcut (or accelerator) is pressed.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.ProcessKeyboardAccelerators.

RightTapped

Occurs when a right-tap input stimulus happens while the pointer is over the element.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.RightTapped.

Tapped

Occurs when an otherwise unhandled Tap interaction occurs over the hit test area of this element.

Equivalent WinUI event: Microsoft.UI.Xaml.UIElement.Tapped.

Applies to

See also