IInputElement Interface
TOC
Collapse the table of content
Expand the table of content

IInputElement Interface

 

Establishes the common events and also the event-related properties and methods for basic input processing by Windows Presentation Foundation (WPF) elements.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

public interface IInputElement

NameDescription
System_CAPS_pubpropertyFocusable

Gets or sets a value that indicates whether focus can be set to this element.

System_CAPS_pubpropertyIsEnabled

Gets a value that indicates whether this element is enabled in the user interface (UI).

System_CAPS_pubpropertyIsKeyboardFocused

Gets a value that indicates whether this element has keyboard focus.

System_CAPS_pubpropertyIsKeyboardFocusWithin

Gets a value that indicates whether keyboard focus is anywhere inside the element bounds, including if keyboard focus is inside the bounds of any visual child elements.

System_CAPS_pubpropertyIsMouseCaptured

Gets a value that indicates whether the mouse is captured to this element.

System_CAPS_pubpropertyIsMouseDirectlyOver

Gets a value that indicates whether the mouse pointer is over this element in the strictest hit testing sense.

System_CAPS_pubpropertyIsMouseOver

Gets a value that indicates whether the mouse pointer is located over this element (including visual children elements that are inside its bounds).

System_CAPS_pubpropertyIsStylusCaptured

Gets a value that indicates whether the stylus is captured to this element.

System_CAPS_pubpropertyIsStylusDirectlyOver

Gets a value that indicates whether the stylus is over this element in the strictest hit testing sense.

System_CAPS_pubpropertyIsStylusOver

Gets a value that indicates whether the stylus is located over this element (or over visual child elements that are inside its bounds).

NameDescription
System_CAPS_pubmethodAddHandler(RoutedEvent, Delegate)

Adds a routed event handler for a specific routed event to an element.

System_CAPS_pubmethodCaptureMouse()

Attempts to force capture of the mouse to this element.

System_CAPS_pubmethodCaptureStylus()

Attempts to force capture of the stylus to this element.

System_CAPS_pubmethodFocus()

Attempts to focus the keyboard on this element.

System_CAPS_pubmethodRaiseEvent(RoutedEventArgs)

Raises the routed event that is specified by the RoutedEventArgs.RoutedEvent property within the provided RoutedEventArgs.

System_CAPS_pubmethodReleaseMouseCapture()

Releases the mouse capture, if this element holds the capture.

System_CAPS_pubmethodReleaseStylusCapture()

Releases the stylus capture, if this element holds the capture.

System_CAPS_pubmethodRemoveHandler(RoutedEvent, Delegate)

Removes all instances of the specified routed event handler from this element.

NameDescription
System_CAPS_pubeventGotKeyboardFocus

Occurs when the keyboard is focused on this element.

System_CAPS_pubeventGotMouseCapture

Occurs when the element captures the mouse.

System_CAPS_pubeventGotStylusCapture

Occurs when the element captures the stylus.

System_CAPS_pubeventKeyDown

Occurs when a key is pressed while the keyboard is focused on this element.

System_CAPS_pubeventKeyUp

Occurs when a key is released while the keyboard is focused on this element.

System_CAPS_pubeventLostKeyboardFocus

Occurs when the keyboard is no longer focused on this element.

System_CAPS_pubeventLostMouseCapture

Occurs when this element loses mouse capture.

System_CAPS_pubeventLostStylusCapture

Occurs when this element loses stylus capture.

System_CAPS_pubeventMouseEnter

Occurs when the mouse pointer enters the bounds of this element.

System_CAPS_pubeventMouseLeave

Occurs when the mouse pointer leaves the bounds of this element.

System_CAPS_pubeventMouseLeftButtonDown

Occurs when the left mouse button is pressed while the mouse pointer is over the element.

System_CAPS_pubeventMouseLeftButtonUp

Occurs when the left mouse button is released while the mouse pointer is over the element.

System_CAPS_pubeventMouseMove

Occurs when the mouse pointer moves while the mouse pointer is over the element.

System_CAPS_pubeventMouseRightButtonDown

Occurs when the right mouse button is pressed while the mouse pointer is over the element.

System_CAPS_pubeventMouseRightButtonUp

Occurs when the right mouse button is released while the mouse pointer is over the element.

System_CAPS_pubeventMouseWheel

Occurs when the mouse wheel moves while the mouse pointer is over this element.

System_CAPS_pubeventPreviewGotKeyboardFocus

Occurs when the keyboard is focused on this element.

System_CAPS_pubeventPreviewKeyDown

Occurs when a key is pressed while the keyboard is focused on this element.

System_CAPS_pubeventPreviewKeyUp

Occurs when a key is released while the keyboard is focused on this element.

System_CAPS_pubeventPreviewLostKeyboardFocus

Occurs when the keyboard is no longer focused on this element.

System_CAPS_pubeventPreviewMouseLeftButtonDown

Occurs when the left mouse button is pressed while the mouse pointer is over the element.

System_CAPS_pubeventPreviewMouseLeftButtonUp

Occurs when the left mouse button is released while the mouse pointer is over the element.

System_CAPS_pubeventPreviewMouseMove

Occurs when the mouse pointer moves while the mouse pointer is over the element.

System_CAPS_pubeventPreviewMouseRightButtonDown

Occurs when the right mouse button is pressed while the mouse pointer is over the element.

System_CAPS_pubeventPreviewMouseRightButtonUp

Occurs when the right mouse button is released while the mouse pointer is over the element.

System_CAPS_pubeventPreviewMouseWheel

Occurs when the mouse wheel moves while the mouse pointer is over this element.

System_CAPS_pubeventPreviewStylusButtonDown

Occurs when the stylus button is pressed down while the stylus is over this element.

System_CAPS_pubeventPreviewStylusButtonUp

Occurs when the stylus button is released while the stylus is over this element.

System_CAPS_pubeventPreviewStylusDown

Occurs when the stylus touches the digitizer while over this element.

System_CAPS_pubeventPreviewStylusInAirMove

Occurs when the stylus moves over an element, but without touching the digitizer.

System_CAPS_pubeventPreviewStylusInRange

Occurs when the stylus is close enough to the digitizer to be detected.

System_CAPS_pubeventPreviewStylusMove

Occurs when the stylus moves while the stylus is over the element.

System_CAPS_pubeventPreviewStylusOutOfRange

Occurs when the stylus is too far from the digitizer to be detected.

System_CAPS_pubeventPreviewStylusSystemGesture

Occurs when one of several stylus gestures are detected, for example, Tap or Drag.

System_CAPS_pubeventPreviewStylusUp

Occurs when the stylus is raised off the digitizer while over this element.

System_CAPS_pubeventPreviewTextInput

Occurs when this element gets text in a device-independent manner.

System_CAPS_pubeventStylusButtonDown

Occurs when the stylus button is pressed while the stylus is over this element.

System_CAPS_pubeventStylusButtonUp

Occurs when the stylus button is released while the stylus is over this element.

System_CAPS_pubeventStylusDown

Occurs when the stylus touches the digitizer while over this element.

System_CAPS_pubeventStylusEnter

Occurs when the stylus cursor enters the bounds of the element.

System_CAPS_pubeventStylusInAirMove

Occurs when the stylus moves over an element, but without touching the digitizer.

System_CAPS_pubeventStylusInRange

Occurs when the stylus is close enough to the digitizer to be detected.

System_CAPS_pubeventStylusLeave

Occurs when the stylus cursor leaves the bounds of the element.

System_CAPS_pubeventStylusMove

Occurs when the stylus cursor moves over the element.

System_CAPS_pubeventStylusOutOfRange

Occurs when the stylus is too far from the digitizer to be detected.

System_CAPS_pubeventStylusSystemGesture

Occurs when one of several stylus gestures are detected, for example, Tap or Drag.

System_CAPS_pubeventStylusUp

Occurs when the stylus is raised off the digitizer while over this element.

System_CAPS_pubeventTextInput

Occurs when this element gets text in a device-independent manner.

System_CAPS_importantImportant

Although this interface is public, it is not intended to be implemented in application or framework-building scenarios. This interface is public because of the inheritance requirements for connecting the WPF core to the WPF framework. You can also use this interface as a casting mechanism to enforce that the input events and properties will come from either a FrameworkElement or FrameworkContentElement, which can be handled in the same input model. For more information, see WPF Architecture and also see Base Elements Overview.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft