UIElement Class

Definition

public ref class UIElement : DependencyObject, IAnimationObject, IVisualElement, IVisualElement2
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class UIElement : DependencyObject, IAnimationObject, IVisualElement, IVisualElement2
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 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, IVisualElement2
Public Class UIElement
Inherits DependencyObject
Implements IAnimationObject, IVisualElement, IVisualElement2
Inheritance
Object Platform::Object IInspectable DependencyObject UIElement
Derived
Attributes
Implements

Properties

Name Description
AccessKey
AccessKeyProperty
AccessKeyScopeOwner
AccessKeyScopeOwnerProperty
ActualOffset
ActualSize
AllowDrop
AllowDropProperty
BringIntoViewRequestedEvent
CacheMode
CacheModeProperty
CanBeScrollAnchor
CanBeScrollAnchorProperty
CanDrag
CanDragProperty
CenterPoint
CharacterReceivedEvent
Clip
ClipProperty
CompositeMode
CompositeModeProperty
ContextFlyout
ContextFlyoutProperty
ContextRequestedEvent
DesiredSize
Dispatcher (Inherited from DependencyObject)
DispatcherQueue (Inherited from DependencyObject)
DoubleTappedEvent
DragEnterEvent
DragLeaveEvent
DragOverEvent
DropEvent
ExitDisplayModeOnAccessKeyInvoked
ExitDisplayModeOnAccessKeyInvokedProperty
FocusState
FocusStateProperty
GettingFocusEvent
HighContrastAdjustment
HighContrastAdjustmentProperty
HoldingEvent
IsAccessKeyScope
IsAccessKeyScopeProperty
IsDoubleTapEnabled
IsDoubleTapEnabledProperty
IsHitTestVisible
IsHitTestVisibleProperty
IsHoldingEnabled
IsHoldingEnabledProperty
IsRightTapEnabled
IsRightTapEnabledProperty
IsTabStop
IsTabStopProperty
IsTapEnabled
IsTapEnabledProperty
KeyboardAcceleratorPlacementMode
KeyboardAcceleratorPlacementModeProperty
KeyboardAcceleratorPlacementTarget
KeyboardAcceleratorPlacementTargetProperty
KeyboardAccelerators
KeyDownEvent
KeyTipHorizontalOffset
KeyTipHorizontalOffsetProperty
KeyTipPlacementMode
KeyTipPlacementModeProperty
KeyTipTarget
KeyTipTargetProperty
KeyTipVerticalOffset
KeyTipVerticalOffsetProperty
KeyUpEvent
Lights
LightsProperty
LosingFocusEvent
ManipulationCompletedEvent
ManipulationDeltaEvent
ManipulationInertiaStartingEvent
ManipulationMode
ManipulationModeProperty
ManipulationStartedEvent
ManipulationStartingEvent
NoFocusCandidateFoundEvent
Opacity
OpacityProperty
OpacityTransition
PointerCanceledEvent
PointerCaptureLostEvent
PointerCaptures
PointerCapturesProperty
PointerEnteredEvent
PointerExitedEvent
PointerMovedEvent
PointerPressedEvent
PointerReleasedEvent
PointerWheelChangedEvent
PreviewKeyDownEvent
PreviewKeyUpEvent
Projection
ProjectionProperty
ProtectedCursor
RasterizationScale
RenderSize
RenderTransform
RenderTransformOrigin
RenderTransformOriginProperty
RenderTransformProperty
RightTappedEvent
Rotation
RotationAxis
RotationTransition
Scale
ScaleTransition
Shadow
ShadowProperty
TabFocusNavigation
TabFocusNavigationProperty
TabIndex
TabIndexProperty
TappedEvent
Transform3D
Transform3DProperty
TransformMatrix
Transitions
TransitionsProperty
Translation
TranslationTransition
UseLayoutRounding
UseLayoutRoundingProperty
UseSystemFocusVisuals
UseSystemFocusVisualsProperty
Visibility
VisibilityProperty
XamlRoot
XYFocusDown
XYFocusDownNavigationStrategy
XYFocusDownNavigationStrategyProperty
XYFocusDownProperty
XYFocusKeyboardNavigation
XYFocusKeyboardNavigationProperty
XYFocusLeft
XYFocusLeftNavigationStrategy
XYFocusLeftNavigationStrategyProperty
XYFocusLeftProperty
XYFocusRight
XYFocusRightNavigationStrategy
XYFocusRightNavigationStrategyProperty
XYFocusRightProperty
XYFocusUp
XYFocusUpNavigationStrategy
XYFocusUpNavigationStrategyProperty
XYFocusUpProperty

Methods

Name Description
AddHandler(RoutedEvent, Object, Boolean)
Arrange(Rect)
CancelDirectManipulations()
CapturePointer(Pointer)
ClearValue(DependencyProperty) (Inherited from DependencyObject)
FindSubElementsForTouchTargeting(Point, Rect)
Focus(FocusState)
GetAnimationBaseValue(DependencyProperty) (Inherited from DependencyObject)
GetChildrenInTabFocusOrder()
GetValue(DependencyProperty) (Inherited from DependencyObject)
GetVisualInternal()
InvalidateArrange()
InvalidateMeasure()
Measure(Size)
OnBringIntoViewRequested(BringIntoViewRequestedEventArgs)
OnCreateAutomationPeer()
OnDisconnectVisualChildren()
OnKeyboardAcceleratorInvoked(KeyboardAcceleratorInvokedEventArgs)
OnProcessKeyboardAccelerators(ProcessKeyboardAcceleratorEventArgs)
PopulatePropertyInfo(String, AnimationPropertyInfo)
PopulatePropertyInfoOverride(String, AnimationPropertyInfo)
ReadLocalValue(DependencyProperty) (Inherited from DependencyObject)
RegisterAsScrollPort(UIElement)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback) (Inherited from DependencyObject)
ReleasePointerCapture(Pointer)
ReleasePointerCaptures()
RemoveHandler(RoutedEvent, Object)
SetValue(DependencyProperty, Object) (Inherited from DependencyObject)
StartAnimation(ICompositionAnimationBase)
StartBringIntoView()
StartBringIntoView(BringIntoViewOptions)
StartDragAsync(ExpPointerPoint)
StartDragAsync(PointerPoint)
StopAnimation(ICompositionAnimationBase)
TransformToVisual(UIElement)
TryInvokeKeyboardAccelerator(ProcessKeyboardAcceleratorEventArgs)
TryStartDirectManipulation(Pointer)
UnregisterPropertyChangedCallback(DependencyProperty, Int64) (Inherited from DependencyObject)
UpdateLayout()

Events

Name Description
AccessKeyDisplayDismissed
AccessKeyDisplayRequested
AccessKeyInvoked
BringIntoViewRequested
CharacterReceived
ContextCanceled
ContextRequested
DoubleTapped
DragEnter
DragLeave
DragOver
DragStarting
Drop
DropCompleted
GettingFocus
GotFocus
Holding
KeyDown
KeyUp
LosingFocus
LostFocus
ManipulationCompleted
ManipulationDelta
ManipulationInertiaStarting
ManipulationStarted
ManipulationStarting
NoFocusCandidateFound
PointerCanceled
PointerCaptureLost
PointerEntered
PointerExited
PointerMoved
PointerPressed
PointerReleased
PointerWheelChanged
PreviewKeyDown
PreviewKeyUp
ProcessKeyboardAccelerators
RightTapped
Tapped

Applies to