Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IInputElement Members

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

The IInputElement type exposes the following members.

  NameDescription
Public method AddHandler Adds a routed event handler for a specific routed event to an element.
Public method CaptureMouse Attempts to force capture of the mouse to this element.
Public method CaptureStylus Attempts to force capture of the stylus to this element.
Public method Focus Attempts to focus the keyboard on this element.
Public method RaiseEvent Raises the routed event that is specified by the RoutedEventArgs.RoutedEvent property within the provided RoutedEventArgs.
Public method ReleaseMouseCapture Releases the mouse capture, if this element holds the capture.
Public method ReleaseStylusCapture Releases the stylus capture, if this element holds the capture.
Public method RemoveHandler Removes all instances of the specified routed event handler from this element.
Top
  NameDescription
Public property Focusable Gets or sets a value that indicates whether focus can be set to this element.
Public property IsEnabled Gets a value that indicates whether this element is enabled in the user interface (UI).
Public property IsKeyboardFocused Gets a value that indicates whether this element has keyboard focus.
Public property IsKeyboardFocusWithin 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.
Public property IsMouseCaptured Gets a value that indicates whether the mouse is captured to this element.
Public property IsMouseDirectlyOver Gets a value that indicates whether the mouse pointer is over this element in the strictest hit testing sense.
Public property IsMouseOver Gets a value that indicates whether the mouse pointer is located over this element (including visual children elements that are inside its bounds).
Public property IsStylusCaptured Gets a value that indicates whether the stylus is captured to this element.
Public property IsStylusDirectlyOver Gets a value that indicates whether the stylus is over this element in the strictest hit testing sense.
Public property IsStylusOver Gets a value that indicates whether the stylus is located over this element (or over visual child elements that are inside its bounds).
Top
  NameDescription
Public event GotKeyboardFocus Occurs when the keyboard is focused on this element.
Public event GotMouseCapture Occurs when the element captures the mouse.
Public event GotStylusCapture Occurs when the element captures the stylus.
Public event KeyDown Occurs when a key is pressed while the keyboard is focused on this element.
Public event KeyUp Occurs when a key is released while the keyboard is focused on this element.
Public event LostKeyboardFocus Occurs when the keyboard is no longer focused on this element.
Public event LostMouseCapture Occurs when this element loses mouse capture.
Public event LostStylusCapture Occurs when this element loses stylus capture.
Public event MouseEnter Occurs when the mouse pointer enters the bounds of this element.
Public event MouseLeave Occurs when the mouse pointer leaves the bounds of this element.
Public event MouseLeftButtonDown Occurs when the left mouse button is pressed while the mouse pointer is over the element.
Public event MouseLeftButtonUp Occurs when the left mouse button is released while the mouse pointer is over the element.
Public event MouseMove Occurs when the mouse pointer moves while the mouse pointer is over the element.
Public event MouseRightButtonDown Occurs when the right mouse button is pressed while the mouse pointer is over the element.
Public event MouseRightButtonUp Occurs when the right mouse button is released while the mouse pointer is over the element.
Public event MouseWheel Occurs when the mouse wheel moves while the mouse pointer is over this element.
Public event PreviewGotKeyboardFocus Occurs when the keyboard is focused on this element.
Public event PreviewKeyDown Occurs when a key is pressed while the keyboard is focused on this element.
Public event PreviewKeyUp Occurs when a key is released while the keyboard is focused on this element.
Public event PreviewLostKeyboardFocus Occurs when the keyboard is no longer focused on this element.
Public event PreviewMouseLeftButtonDown Occurs when the left mouse button is pressed while the mouse pointer is over the element.
Public event PreviewMouseLeftButtonUp Occurs when the left mouse button is released while the mouse pointer is over the element.
Public event PreviewMouseMove Occurs when the mouse pointer moves while the mouse pointer is over the element.
Public event PreviewMouseRightButtonDown Occurs when the right mouse button is pressed while the mouse pointer is over the element.
Public event PreviewMouseRightButtonUp Occurs when the right mouse button is released while the mouse pointer is over the element.
Public event PreviewMouseWheel Occurs when the mouse wheel moves while the mouse pointer is over this element.
Public event PreviewStylusButtonDown Occurs when the stylus button is pressed down while the stylus is over this element.
Public event PreviewStylusButtonUp Occurs when the stylus button is released while the stylus is over this element.
Public event PreviewStylusDown Occurs when the stylus touches the digitizer while over this element.
Public event PreviewStylusInAirMove Occurs when the stylus moves over an element, but without touching the digitizer.
Public event PreviewStylusInRange Occurs when the stylus is close enough to the digitizer to be detected.
Public event PreviewStylusMove Occurs when the stylus moves while the stylus is over the element.
Public event PreviewStylusOutOfRange Occurs when the stylus is too far from the digitizer to be detected.
Public event PreviewStylusSystemGesture Occurs when one of several stylus gestures are detected, for example, Tap or Drag.
Public event PreviewStylusUp Occurs when the stylus is raised off the digitizer while over this element.
Public event PreviewTextInput Occurs when this element gets text in a device-independent manner.
Public event StylusButtonDown Occurs when the stylus button is pressed while the stylus is over this element.
Public event StylusButtonUp Occurs when the stylus button is released while the stylus is over this element.
Public event StylusDown Occurs when the stylus touches the digitizer while over this element.
Public event StylusEnter Occurs when the stylus cursor enters the bounds of the element.
Public event StylusInAirMove Occurs when the stylus moves over an element, but without touching the digitizer.
Public event StylusInRange Occurs when the stylus is close enough to the digitizer to be detected.
Public event StylusLeave Occurs when the stylus cursor leaves the bounds of the element.
Public event StylusMove Occurs when the stylus cursor moves over the element.
Public event StylusOutOfRange Occurs when the stylus is too far from the digitizer to be detected.
Public event StylusSystemGesture Occurs when one of several stylus gestures are detected, for example, Tap or Drag.
Public event StylusUp Occurs when the stylus is raised off the digitizer while over this element.
Public event TextInput Occurs when this element gets text in a device-independent manner.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.