- UIElement - AllowDropProperty 
- AreAnyTouchesCapturedProperty 
- AreAnyTouchesCapturedWithinProperty 
- AreAnyTouchesDirectlyOverProperty 
- AreAnyTouchesOverProperty 
- BitmapEffectInputProperty 
- BitmapEffectProperty 
- CacheModeProperty 
- ClipProperty 
- ClipToBoundsProperty 
- DragEnterEvent 
- DragLeaveEvent 
- DragOverEvent 
- DropEvent 
- EffectProperty 
- FocusableProperty 
- GiveFeedbackEvent 
- GotFocusEvent 
- GotKeyboardFocusEvent 
- GotMouseCaptureEvent 
- GotStylusCaptureEvent 
- GotTouchCaptureEvent 
- IsEnabledProperty 
- IsFocusedProperty 
- IsHitTestVisibleProperty 
- IsKeyboardFocusedProperty 
- IsKeyboardFocusWithinProperty 
- IsManipulationEnabledProperty 
- IsMouseCapturedProperty 
- IsMouseCaptureWithinProperty 
- IsMouseDirectlyOverProperty 
- IsMouseOverProperty 
- IsStylusCapturedProperty 
- IsStylusCaptureWithinProperty 
- IsStylusDirectlyOverProperty 
- IsStylusOverProperty 
- IsVisibleProperty 
- KeyDownEvent 
- KeyUpEvent 
- LostFocusEvent 
- LostKeyboardFocusEvent 
- LostMouseCaptureEvent 
- LostStylusCaptureEvent 
- LostTouchCaptureEvent 
- ManipulationBoundaryFeedbackEvent 
- ManipulationCompletedEvent 
- ManipulationDeltaEvent 
- ManipulationInertiaStartingEvent 
- ManipulationStartedEvent 
- ManipulationStartingEvent 
- MouseDownEvent 
- MouseEnterEvent 
- MouseLeaveEvent 
- MouseLeftButtonDownEvent 
- MouseLeftButtonUpEvent 
- MouseMoveEvent 
- MouseRightButtonDownEvent 
- MouseRightButtonUpEvent 
- MouseUpEvent 
- MouseWheelEvent 
- OpacityMaskProperty 
- OpacityProperty 
- PreviewDragEnterEvent 
- PreviewDragLeaveEvent 
- PreviewDragOverEvent 
- PreviewDropEvent 
- PreviewGiveFeedbackEvent 
- PreviewGotKeyboardFocusEvent 
- PreviewKeyDownEvent 
- PreviewKeyUpEvent 
- PreviewLostKeyboardFocusEvent 
- PreviewMouseDownEvent 
- PreviewMouseLeftButtonDownEvent 
- PreviewMouseLeftButtonUpEvent 
- PreviewMouseMoveEvent 
- PreviewMouseRightButtonDownEvent 
- PreviewMouseRightButtonUpEvent 
- PreviewMouseUpEvent 
- PreviewMouseWheelEvent 
- PreviewQueryContinueDragEvent 
- PreviewStylusButtonDownEvent 
- PreviewStylusButtonUpEvent 
- PreviewStylusDownEvent 
- PreviewStylusInAirMoveEvent 
- PreviewStylusInRangeEvent 
- PreviewStylusMoveEvent 
- PreviewStylusOutOfRangeEvent 
- PreviewStylusSystemGestureEvent 
- PreviewStylusUpEvent 
- PreviewTextInputEvent 
- PreviewTouchDownEvent 
- PreviewTouchMoveEvent 
- PreviewTouchUpEvent 
- QueryContinueDragEvent 
- QueryCursorEvent 
- RenderTransformOriginProperty 
- RenderTransformProperty 
- SnapsToDevicePixelsProperty 
- StylusButtonDownEvent 
- StylusButtonUpEvent 
- StylusDownEvent 
- StylusEnterEvent 
- StylusInAirMoveEvent 
- StylusInRangeEvent 
- StylusLeaveEvent 
- StylusMoveEvent 
- StylusOutOfRangeEvent 
- StylusSystemGestureEvent 
- StylusUpEvent 
- TextInputEvent 
- TouchDownEvent 
- TouchEnterEvent 
- TouchLeaveEvent 
- TouchMoveEvent 
- TouchUpEvent 
- UidProperty 
- VisibilityProperty 
- UIElement() 
- AllowDrop 
- AreAnyTouchesCaptured 
- AreAnyTouchesCapturedWithin 
- AreAnyTouchesDirectlyOver 
- AreAnyTouchesOver 
- BitmapEffect 
- BitmapEffectInput 
- CacheMode 
- Clip 
- ClipToBounds 
- CommandBindings 
- DesiredSize 
- Effect 
- Focusable 
- HasAnimatedProperties 
- HasEffectiveKeyboardFocus 
- InputBindings 
- IsArrangeValid 
- IsEnabled 
- IsEnabledCore 
- IsFocused 
- IsHitTestVisible 
- IsInputMethodEnabled 
- IsKeyboardFocused 
- IsKeyboardFocusWithin 
- IsManipulationEnabled 
- IsMeasureValid 
- IsMouseCaptured 
- IsMouseCaptureWithin 
- IsMouseDirectlyOver 
- IsMouseOver 
- IsStylusCaptured 
- IsStylusCaptureWithin 
- IsStylusDirectlyOver 
- IsStylusOver 
- IsVisible 
- Opacity 
- OpacityMask 
- PersistId 
- RenderSize 
- RenderTransform 
- RenderTransformOrigin 
- SnapsToDevicePixels 
- StylusPlugIns 
- TouchesCaptured 
- TouchesCapturedWithin 
- TouchesDirectlyOver 
- TouchesOver 
- Uid 
- Visibility 
- AddHandler(RoutedEvent, Delegate) 
- AddHandler(RoutedEvent, Delegate, Boolean) 
- AddToEventRoute(EventRoute, RoutedEventArgs) 
- ApplyAnimationClock(DependencyProperty, AnimationClock) 
- ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) 
- Arrange(Rect) 
- ArrangeCore(Rect) 
- BeginAnimation(DependencyProperty, AnimationTimeline) 
- BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) 
- CaptureMouse() 
- CaptureStylus() 
- CaptureTouch(TouchDevice) 
- Focus() 
- GetAnimationBaseValue(DependencyProperty) 
- GetLayoutClip(Size) 
- GetUIParentCore() 
- HitTestCore(GeometryHitTestParameters) 
- HitTestCore(PointHitTestParameters) 
- InputHitTest(Point) 
- InvalidateArrange() 
- InvalidateMeasure() 
- InvalidateVisual() 
- Measure(Size) 
- MeasureCore(Size) 
- MoveFocus(TraversalRequest) 
- OnAccessKey(AccessKeyEventArgs) 
- OnChildDesiredSizeChanged(UIElement) 
- OnCreateAutomationPeer() 
- OnDragEnter(DragEventArgs) 
- OnDragLeave(DragEventArgs) 
- OnDragOver(DragEventArgs) 
- OnDrop(DragEventArgs) 
- OnGiveFeedback(GiveFeedbackEventArgs) 
- OnGotFocus(RoutedEventArgs) 
- OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) 
- OnGotMouseCapture(MouseEventArgs) 
- OnGotStylusCapture(StylusEventArgs) 
- OnGotTouchCapture(TouchEventArgs) 
- OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs) 
- OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) 
- OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs) 
- OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs) 
- OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs) 
- OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs) 
- OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs) 
- OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs) 
- OnKeyDown(KeyEventArgs) 
- OnKeyUp(KeyEventArgs) 
- OnLostFocus(RoutedEventArgs) 
- OnLostKeyboardFocus(KeyboardFocusChangedEventArgs) 
- OnLostMouseCapture(MouseEventArgs) 
- OnLostStylusCapture(StylusEventArgs) 
- OnLostTouchCapture(TouchEventArgs) 
- OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs) 
- OnManipulationCompleted(ManipulationCompletedEventArgs) 
- OnManipulationDelta(ManipulationDeltaEventArgs) 
- OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs) 
- OnManipulationStarted(ManipulationStartedEventArgs) 
- OnManipulationStarting(ManipulationStartingEventArgs) 
- OnMouseDown(MouseButtonEventArgs) 
- OnMouseEnter(MouseEventArgs) 
- OnMouseLeave(MouseEventArgs) 
- OnMouseLeftButtonDown(MouseButtonEventArgs) 
- OnMouseLeftButtonUp(MouseButtonEventArgs) 
- OnMouseMove(MouseEventArgs) 
- OnMouseRightButtonDown(MouseButtonEventArgs) 
- OnMouseRightButtonUp(MouseButtonEventArgs) 
- OnMouseUp(MouseButtonEventArgs) 
- OnMouseWheel(MouseWheelEventArgs) 
- OnPreviewDragEnter(DragEventArgs) 
- OnPreviewDragLeave(DragEventArgs) 
- OnPreviewDragOver(DragEventArgs) 
- OnPreviewDrop(DragEventArgs) 
- OnPreviewGiveFeedback(GiveFeedbackEventArgs) 
- OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs) 
- OnPreviewKeyDown(KeyEventArgs) 
- OnPreviewKeyUp(KeyEventArgs) 
- OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs) 
- OnPreviewMouseDown(MouseButtonEventArgs) 
- OnPreviewMouseLeftButtonDown(MouseButtonEventArgs) 
- OnPreviewMouseLeftButtonUp(MouseButtonEventArgs) 
- OnPreviewMouseMove(MouseEventArgs) 
- OnPreviewMouseRightButtonDown(MouseButtonEventArgs) 
- OnPreviewMouseRightButtonUp(MouseButtonEventArgs) 
- OnPreviewMouseUp(MouseButtonEventArgs) 
- OnPreviewMouseWheel(MouseWheelEventArgs) 
- OnPreviewQueryContinueDrag(QueryContinueDragEventArgs) 
- OnPreviewStylusButtonDown(StylusButtonEventArgs) 
- OnPreviewStylusButtonUp(StylusButtonEventArgs) 
- OnPreviewStylusDown(StylusDownEventArgs) 
- OnPreviewStylusInAirMove(StylusEventArgs) 
- OnPreviewStylusInRange(StylusEventArgs) 
- OnPreviewStylusMove(StylusEventArgs) 
- OnPreviewStylusOutOfRange(StylusEventArgs) 
- OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs) 
- OnPreviewStylusUp(StylusEventArgs) 
- OnPreviewTextInput(TextCompositionEventArgs) 
- OnPreviewTouchDown(TouchEventArgs) 
- OnPreviewTouchMove(TouchEventArgs) 
- OnPreviewTouchUp(TouchEventArgs) 
- OnQueryContinueDrag(QueryContinueDragEventArgs) 
- OnQueryCursor(QueryCursorEventArgs) 
- OnRender(DrawingContext) 
- OnRenderSizeChanged(SizeChangedInfo) 
- OnStylusButtonDown(StylusButtonEventArgs) 
- OnStylusButtonUp(StylusButtonEventArgs) 
- OnStylusDown(StylusDownEventArgs) 
- OnStylusEnter(StylusEventArgs) 
- OnStylusInAirMove(StylusEventArgs) 
- OnStylusInRange(StylusEventArgs) 
- OnStylusLeave(StylusEventArgs) 
- OnStylusMove(StylusEventArgs) 
- OnStylusOutOfRange(StylusEventArgs) 
- OnStylusSystemGesture(StylusSystemGestureEventArgs) 
- OnStylusUp(StylusEventArgs) 
- OnTextInput(TextCompositionEventArgs) 
- OnTouchDown(TouchEventArgs) 
- OnTouchEnter(TouchEventArgs) 
- OnTouchLeave(TouchEventArgs) 
- OnTouchMove(TouchEventArgs) 
- OnTouchUp(TouchEventArgs) 
- OnVisualParentChanged(DependencyObject) 
- PredictFocus(FocusNavigationDirection) 
- RaiseEvent(RoutedEventArgs) 
- ReleaseAllTouchCaptures() 
- ReleaseMouseCapture() 
- ReleaseStylusCapture() 
- ReleaseTouchCapture(TouchDevice) 
- RemoveHandler(RoutedEvent, Delegate) 
- ShouldSerializeCommandBindings() 
- ShouldSerializeInputBindings() 
- TranslatePoint(Point, UIElement) 
- UpdateLayout() 
- DragEnter 
- DragLeave 
- DragOver 
- Drop 
- FocusableChanged 
- GiveFeedback 
- GotFocus 
- GotKeyboardFocus 
- GotMouseCapture 
- GotStylusCapture 
- GotTouchCapture 
- IsEnabledChanged 
- IsHitTestVisibleChanged 
- IsKeyboardFocusedChanged 
- IsKeyboardFocusWithinChanged 
- IsMouseCapturedChanged 
- IsMouseCaptureWithinChanged 
- IsMouseDirectlyOverChanged 
- IsStylusCapturedChanged 
- IsStylusCaptureWithinChanged 
- IsStylusDirectlyOverChanged 
- IsVisibleChanged 
- KeyDown 
- KeyUp 
- LayoutUpdated 
- LostFocus 
- LostKeyboardFocus 
- LostMouseCapture 
- LostStylusCapture 
- LostTouchCapture 
- ManipulationBoundaryFeedback 
- ManipulationCompleted 
- ManipulationDelta 
- ManipulationInertiaStarting 
- ManipulationStarted 
- ManipulationStarting 
- MouseDown 
- MouseEnter 
- MouseLeave 
- MouseLeftButtonDown 
- MouseLeftButtonUp 
- MouseMove 
- MouseRightButtonDown 
- MouseRightButtonUp 
- MouseUp 
- MouseWheel 
- PreviewDragEnter 
- PreviewDragLeave 
- PreviewDragOver 
- PreviewDrop 
- PreviewGiveFeedback 
- PreviewGotKeyboardFocus 
- PreviewKeyDown 
- PreviewKeyUp 
- PreviewLostKeyboardFocus 
- PreviewMouseDown 
- PreviewMouseLeftButtonDown 
- PreviewMouseLeftButtonUp 
- PreviewMouseMove 
- PreviewMouseRightButtonDown 
- PreviewMouseRightButtonUp 
- PreviewMouseUp 
- PreviewMouseWheel 
- PreviewQueryContinueDrag 
- PreviewStylusButtonDown 
- PreviewStylusButtonUp 
- PreviewStylusDown 
- PreviewStylusInAirMove 
- PreviewStylusInRange 
- PreviewStylusMove 
- PreviewStylusOutOfRange 
- PreviewStylusSystemGesture 
- PreviewStylusUp 
- PreviewTextInput 
- PreviewTouchDown 
- PreviewTouchMove 
- PreviewTouchUp 
- QueryContinueDrag 
- QueryCursor 
- StylusButtonDown 
- StylusButtonUp 
- StylusDown 
- StylusEnter 
- StylusInAirMove 
- StylusInRange 
- StylusLeave 
- StylusMove 
- StylusOutOfRange 
- StylusSystemGesture 
- StylusUp 
- TextInput 
- TouchDown 
- TouchEnter 
- TouchLeave 
- TouchMove 
- TouchUp 
 
net9.0-windows10.0.22621
    namespace System.Windows
{
    [UidProperty("Uid")]
    public class UIElement : Visual, IInputElement, IAnimatable
    {
        public event KeyEventHandler KeyDown;
    }
}
            | NetFx Compat Lab | 39.6 % Reference this API 39.6 % Subscribe to this event 24.0 % Unsubscribe from this event | 
|---|---|
| nuget.org | 0.3 % Reference this API 0.3 % Subscribe to this event 0.2 % Unsubscribe from this event | 
| Upgrade Planner | 0.8 % Reference this API 0.8 % Subscribe to this event 0.4 % Unsubscribe from this event | 
| .NET | 5.06.07.08.09.0 | 
| .NET Core | 3.03.1 | 
| .NET Framework | 3.03.54.04.54.5.14.5.24.64.6.14.6.24.74.7.14.7.24.84.8.1 | 
| Information specific to net9.0 | |
| Platforms | This API is only available when you target a specific platform: | 
| Windows | 7.08.010.0.1776310.0.1836210.0.1904110.0.2034810.0.2200010.0.22621 | 
| Information specific to net9.0-windows10.0.22621 | |
| Assembly | PresentationCore , Version=9.0.0.0, PublicKeyToken=31bf3856ad364e35 | 
| Referencing | Your project needs to set  | 
| Platform Restrictions | The event adder is only supported on the following platforms: 
 The event remover is only supported on the following platforms: 
 | 
- Built-in API
- Package-provided API