Content​Element Class

Definition

Provides a WPF core-level base class for content elements. Content elements are designed for flow-style presentation, using an intuitive markup-oriented layout model and a deliberately simple object model.

public class ContentElement : System.Windows.DependencyObject, System.Windows.IInputElement, System.Windows.Media.Animation.IAnimatable
Inheritance
Derived
Implements

Inherited Members

System.Object

System.Windows.DependencyObject

System.Windows.Threading.DispatcherObject

Remarks

ContentElement defines the following common content characteristics:

  • Input: All ContentElement derived classes provide support for basic input capture from keyboard, mouse, drag-and-drop operations, stylus controls, and accelerators.

  • Focus: All ContentElement derived classes are potentially focusable. (However, the default focusable state for the ContentElement base class is false. For details on how to make a ContentElement focusable, see Focusable.) In addition, this class contains APIs that you can use for traversing the focus across related elements.

  • Events: ContentElement includes events that are related to input and focus; it also includes events for changes in state. In many cases, the ContentElement events are routed events. In some cases, routed events have both tunneling and bubbling routing strategies, raised as separate events in response to the same state or condition. Also, ContentElement defines APIs that can raise routed events and that can add or remove handlers to events.

ContentElement shares many common APIs with UIElement. These common APIs do not come from a shared class inheritance. But they do share common naming, similar behavior, and similar internal implementation of APIs in each class. The similarity is because ContentElement and UIElement are each classes that are an element base, although each has different intentions for its markup object model behavior.

In particular, UIElement descends from Visual, which provides the lower-level graphics support for rendering a ContentElement to a rectangular region within a composited window, whereas ContentElement defers rendering so that concepts more common to document scenarios, such as flow and wrapping, are more easily supported. These two related classes also implement the common interfaces IInputElement and IAnimatable.

Constructors

Content​Element()

Initializes a new instance of the ContentElement class.

Fields

Allow​Drop​Property

Identifies the AllowDrop dependency property.

Are​Any​Touches​Captured​Property

Identifies the AreAnyTouchesCaptured dependency property.

Are​Any​Touches​Captured​Within​Property

Identifies the AreAnyTouchesCapturedWithin dependency property.

Are​Any​Touches​Directly​Over​Property

Identifies the AreAnyTouchesDirectlyOver dependency property.

Are​Any​Touches​Over​Property

Identifies the AreAnyTouchesOver dependency property.

Drag​Enter​Event

Identifies the DragEnter routed event.

Drag​Leave​Event

Identifies the DragLeave routed event.

Drag​Over​Event

Identifies the DragOver routed event.

Drop​Event

Identifies the Drop routed event.

Focusable​Property

Identifies the Focusable dependency property.

Give​Feedback​Event

Identifies the GiveFeedback routed event.

Got​Focus​Event

Identifies the GotFocus routed event.

Got​Keyboard​Focus​Event

Identifies the GotKeyboardFocus routed event.

Got​Mouse​Capture​Event

Identifies the GotMouseCapture routed event.

Got​Stylus​Capture​Event

Identifies the GotStylusCapture routed event.

Got​Touch​Capture​Event

Identifies the GotTouchCapture routed event.

Is​Enabled​Property

Identifies the IsEnabled dependency property.

Is​Focused​Property

Identifies the IsFocused dependency property.

Is​Keyboard​Focused​Property

Identifies the IsKeyboardFocused dependency property.

Is​Keyboard​Focus​Within​Property

Identifies the IsKeyboardFocusWithin dependency property.

Is​Mouse​Captured​Property

Identifies the IsMouseCaptured dependency property.

Is​Mouse​Capture​Within​Property

Identifies the IsMouseCaptureWithin dependency property.

Is​Mouse​Directly​Over​Property

Identifies the IsMouseDirectlyOver dependency property.

Is​Mouse​Over​Property

Identifies the IsMouseOver dependency property.

Is​Stylus​Captured​Property

Identifies the IsStylusCaptured dependency property.

Is​Stylus​Capture​Within​Property

Identifies the IsStylusCaptureWithin dependency property.

Is​Stylus​Directly​Over​Property

Identifies the IsStylusDirectlyOver dependency property.

Is​Stylus​Over​Property

Identifies the IsStylusOver dependency property.

Key​Down​Event

Identifies the KeyDown routed event.

Key​Up​Event

Identifies the KeyUp routed event.

Lost​Focus​Event

Identifies the LostFocus routed event.

Lost​Keyboard​Focus​Event

Identifies the LostKeyboardFocus routed event.

Lost​Mouse​Capture​Event

Identifies the LostMouseCapture routed event.

Lost​Stylus​Capture​Event

Identifies the LostStylusCapture routed event.

Lost​Touch​Capture​Event

Identifies the LostTouchCapture routed event.

Mouse​Down​Event

Identifies the MouseDown routed event.

Mouse​Enter​Event

Identifies the MouseEnter routed event.

Mouse​Leave​Event

Identifies the MouseLeave routed event.

Mouse​Left​Button​Down​Event

Identifies the MouseLeftButtonDown routed event.

Mouse​Left​Button​Up​Event

Identifies the MouseLeftButtonUp routed event.

Mouse​Move​Event

Identifies the MouseMove routed event.

Mouse​Right​Button​Down​Event

Identifies the MouseRightButtonDown routed event.

Mouse​Right​Button​Up​Event

Identifies the MouseRightButtonUp routed event.

Mouse​Up​Event

Identifies the MouseUp routed event.

Mouse​Wheel​Event

Identifies the MouseWheel routed event.

Preview​Drag​Enter​Event

Identifies the PreviewDragEnter routed event.

Preview​Drag​Leave​Event

Identifies the PreviewDragLeave routed event.

Preview​Drag​Over​Event

Identifies the PreviewDragOver routed event.

Preview​Drop​Event

Identifies the PreviewDrop routed event.

Preview​Give​Feedback​Event

Identifies the PreviewGiveFeedback routed event.

Preview​Got​Keyboard​Focus​Event

Identifies the PreviewGotKeyboardFocus routed event.

Preview​Key​Down​Event

Identifies the PreviewKeyDown routed event.

Preview​Key​Up​Event

Identifies the PreviewKeyUp routed event.

Preview​Lost​Keyboard​Focus​Event

Identifies the PreviewLostKeyboardFocus routed event.

Preview​Mouse​Down​Event

Identifies the PreviewMouseDown routed event.

Preview​Mouse​Left​Button​Down​Event

Identifies the PreviewMouseLeftButtonDown routed event.

Preview​Mouse​Left​Button​Up​Event

Identifies the PreviewMouseLeftButtonUp routed event.

Preview​Mouse​Move​Event

Identifies the PreviewMouseMove routed event.

Preview​Mouse​Right​Button​Down​Event

Identifies the PreviewMouseRightButtonDown routed event.

Preview​Mouse​Right​Button​Up​Event

Identifies the PreviewMouseRightButtonUp routed event.

Preview​Mouse​Up​Event

Identifies the PreviewMouseUp routed event.

Preview​Mouse​Wheel​Event

Identifies the PreviewMouseWheel routed event.

Preview​Query​Continue​Drag​Event

Identifies the PreviewQueryContinueDrag routed event.

Preview​Stylus​Button​Down​Event

Identifies the PreviewStylusButtonDown routed event.

Preview​Stylus​Button​Up​Event

Identifies the PreviewStylusButtonUp routed event.

Preview​Stylus​Down​Event

Identifies the PreviewStylusDown routed event.

Preview​Stylus​In​Air​Move​Event

Identifies the PreviewStylusInAirMove routed event.

Preview​Stylus​In​Range​Event

Identifies the PreviewStylusInRange routed event.

Preview​Stylus​Move​Event

Identifies the PreviewStylusMove routed event.

Preview​Stylus​Out​Of​Range​Event

Identifies the PreviewStylusOutOfRange routed event.

Preview​Stylus​System​Gesture​Event

Identifies the PreviewStylusSystemGesture routed event.

Preview​Stylus​Up​Event

Identifies the PreviewStylusUp routed event.

Preview​Text​Input​Event

Identifies the PreviewTextInput routed event.

Preview​Touch​Down​Event

Identifies the PreviewTouchDown routed event.

Preview​Touch​Move​Event

Identifies the PreviewTouchMove routed event.

Preview​Touch​Up​Event

Identifies the PreviewTouchUp routed event.

Query​Continue​Drag​Event

Identifies the QueryContinueDrag routed event.

Query​Cursor​Event

Identifies the QueryCursor routed event.

Stylus​Button​Down​Event

Identifies the StylusButtonDown routed event.

Stylus​Button​Up​Event

Identifies the StylusButtonUp routed event.

Stylus​Down​Event

Identifies the StylusDown routed event.

Stylus​Enter​Event

Identifies the StylusEnter routed event.

Stylus​In​Air​Move​Event

Identifies the StylusInAirMove routed event.

Stylus​In​Range​Event

Identifies the StylusInRange routed event.

Stylus​Leave​Event

Identifies the StylusLeave routed event.

Stylus​Move​Event

Identifies the StylusMove routed event.

Stylus​Out​Of​Range​Event

Identifies the StylusOutOfRange routed event.

Stylus​System​Gesture​Event

Identifies the StylusSystemGesture routed event.

Stylus​Up​Event

Identifies the StylusUp routed event.

Text​Input​Event

Identifies the TextInput routed event.

Touch​Down​Event

Identifies the TouchDown routed event.

Touch​Enter​Event

Identifies the TouchEnter routed event.

Touch​Leave​Event

Identifies the TouchLeave routed event.

Touch​Move​Event

Identifies the TouchMove routed event.

Touch​Up​Event

Identifies the TouchUp routed event.

Properties

Allow​Drop

Gets or sets a value that indicates whether this element can be used as the target of a drag-and-drop operation.

Are​Any​Touches​Captured

Gets a value that indicates whether at least one touch is captured to this element.

Are​Any​Touches​Captured​Within

Gets a value that indicates whether at least one touch is captured to this element or to any child elements in its visual tree.

Are​Any​Touches​Directly​Over

Gets a value that indicates whether at least one touch is pressed over this element.

Are​Any​Touches​Over

Gets a value that indicates whether at least one touch is pressed over this element or any child elements in its visual tree.

Command​Bindings

Gets a collection of CommandBinding objects that are associated with this element.

Focusable

Gets or sets a value that indicates whether the element can receive focus.

Has​Animated​Properties

Gets a value that indicates whether this element has any animated properties.

Input​Bindings

Gets the collection of input bindings that are associated with this element.

Is​Enabled

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

Is​Enabled​Core

Gets a value that becomes the return value of IsEnabled in derived classes.

Is​Focused

Gets a value that determines whether this element has logical focus.

Is​Input​Method​Enabled

Gets a value that indicates whether an input method system, such as an Input Method Editor (IME), is enabled for processing the input to this element.

Is​Keyboard​Focused

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

Is​Keyboard​Focus​Within

Gets a value that indicates whether keyboard focus is anywhere within the element or child elements.

Is​Mouse​Captured

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

Is​Mouse​Capture​Within

Gets a value that determines whether mouse capture is held by this element or by child elements in its element tree.

Is​Mouse​Directly​Over

Gets a value that indicates whether the position of the mouse pointer corresponds to hit test results, which take element compositing into account.

Is​Mouse​Over

Gets a value that indicates whether the mouse pointer is located over this element (including visual child elements, or its control compositing).

Is​Stylus​Captured

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

Is​Stylus​Capture​Within

Gets a value that determines whether stylus capture is held by this element, including child elements and control compositing.

Is​Stylus​Directly​Over

Gets a value that indicates whether the stylus position corresponds to hit test results, which take element compositing into account.

Is​Stylus​Over

Gets a value that indicates whether the stylus is located over this element (including visual child elements).

Touches​Captured

Gets all touch devices that are captured to this element.

Touches​Captured​Within

Gets all touch devices that are captured to this element or any child elements in its visual tree.

Touches​Directly​Over

Gets all touch devices that are over this element.

Touches​Over

Gets all touch devices that are over this element or any child elements in its visual tree.

Methods

Add​Handler(​Routed​Event, ​Delegate)

Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element.

Add​Handler(​Routed​Event, ​Delegate, ​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 for routed event that had already been marked as handled by another element along the event route.

Add​To​Event​Route(​Event​Route, ​Routed​Event​Args)

Adds handlers to the specified EventRoute for the current ContentElement event handler collection.

Apply​Animation​Clock(​Dependency​Property, ​Animation​Clock)

Applies an animation to a specified dependency property on this element. Any existing animations are stopped and replaced with the new animation.

Apply​Animation​Clock(​Dependency​Property, ​Animation​Clock, ​Handoff​Behavior)

Applies an animation to a specified dependency property on this element, with the ability to specify what happens if the property already has a running animation.

Begin​Animation(​Dependency​Property, ​Animation​Timeline)

Starts an animation for a specified animated property on this element.

Begin​Animation(​Dependency​Property, ​Animation​Timeline, ​Handoff​Behavior)

Starts a specific animation for a specified animated property on this element, with the option of specifying what happens if the property already has a running animation.

Capture​Mouse()

Attempts to force capture of the mouse to this element.

Capture​Stylus()

Attempts to force capture of the stylus to this element.

Capture​Touch(​Touch​Device)

Attempts to force capture of a touch to this element.

Focus()

Attempts to set focus to this element.

Get​Animation​Base​Value(​Dependency​Property)

Returns the base property value for the specified property on this element, disregarding any possible animated value from a running or stopped animation.

Get​UI​Parent​Core()

When overridden in a derived class, returns an alternative user interface (UI) parent for this element if no visual parent exists.

Move​Focus(​Traversal​Request)

Attempts to move focus from this element to another element. The direction to move focus is specified by a guidance direction, which is interpreted within the organization of the visual parent for this element.

On​Create​Automation​Peer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

On​Drag​Enter(​Drag​Event​Args)

Invoked when an unhandled DragEnter attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Drag​Leave(​Drag​Event​Args)

Invoked when an unhandled DragLeave attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Drag​Over(​Drag​Event​Args)

Invoked when an unhandled DragOver attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Drop(​Drag​Event​Args)

Invoked when an unhandled DragEnter attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Give​Feedback(​Give​Feedback​Event​Args)

Invoked when an unhandled GiveFeedback attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Got​Focus(​Routed​Event​Args)

Raises the GotFocus routed event by using the event data provided.

On​Got​Keyboard​Focus(​Keyboard​Focus​Changed​Event​Args)

Invoked when an unhandled GotKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Got​Mouse​Capture(​Mouse​Event​Args)

Invoked when an unhandled GotMouseCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Got​Stylus​Capture(​Stylus​Event​Args)

Invoked when an unhandled GotStylusCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Got​Touch​Capture(​Touch​Event​Args)

Provides class handling for the GotTouchCapture routed event that occurs when a touch is captured to this element.

On​Is​Keyboard​Focused​Changed(​Dependency​Property​Changed​Event​Args)

Invoked when an unhandled IsKeyboardFocusedChanged event is raised on this element. Implement this method to add class handling for this event.

On​Is​Keyboard​Focus​Within​Changed(​Dependency​Property​Changed​Event​Args)

Invoked just before the IsKeyboardFocusWithinChanged event is raised by this element. Implement this method to add class handling for this event.

On​Is​Mouse​Captured​Changed(​Dependency​Property​Changed​Event​Args)

Invoked when an unhandled IsMouseCapturedChanged event is raised on this element. Implement this method to add class handling for this event.

On​Is​Mouse​Capture​Within​Changed(​Dependency​Property​Changed​Event​Args)

Invoked when an unhandled IsMouseCaptureWithinChanged event is raised on this element. Implement this method to add class handling for this event.

On​Is​Mouse​Directly​Over​Changed(​Dependency​Property​Changed​Event​Args)

Invoked when an unhandled IsMouseDirectlyOverChanged event is raised on this element. Implement this method to add class handling for this event.

On​Is​Stylus​Captured​Changed(​Dependency​Property​Changed​Event​Args)

Invoked when an unhandled IsStylusCapturedChanged event is raised on this element. Implement this method to add class handling for this event.

On​Is​Stylus​Capture​Within​Changed(​Dependency​Property​Changed​Event​Args)

Invoked when an unhandled IsStylusCaptureWithinChanged event is raised on this element. Implement this method to add class handling for this event.

On​Is​Stylus​Directly​Over​Changed(​Dependency​Property​Changed​Event​Args)

Invoked when an unhandled IsStylusDirectlyOverChanged event is raised on this element. Implement this method to add class handling for this event.

On​Key​Down(​Key​Event​Args)

Invoked when an unhandled KeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Key​Up(​Key​Event​Args)

Invoked when an unhandled KeyUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Lost​Focus(​Routed​Event​Args)

Raises the LostFocus routed event by using the event data that is provided.

On​Lost​Keyboard​Focus(​Keyboard​Focus​Changed​Event​Args)

Invoked when an unhandled LostKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Lost​Mouse​Capture(​Mouse​Event​Args)

Invoked when an unhandled LostMouseCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Lost​Stylus​Capture(​Stylus​Event​Args)

Invoked when an unhandled LostStylusCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Lost​Touch​Capture(​Touch​Event​Args)

Provides class handling for the LostTouchCapture routed event that occurs when this element loses a touch capture.

On​Mouse​Down(​Mouse​Button​Event​Args)

Invoked when an unhandled MouseDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Mouse​Enter(​Mouse​Event​Args)

Invoked when an unhandled MouseEnter attached event is raised on this element. Implement this method to add class handling for this event.

On​Mouse​Leave(​Mouse​Event​Args)

Invoked when an unhandled MouseLeave attached event is raised on this element. Implement this method to add class handling for this event.

On​Mouse​Left​Button​Down(​Mouse​Button​Event​Args)

Invoked when an unhandled MouseLeftButtonDown routed event is raised on this element. Implement this method to add class handling for this event.

On​Mouse​Left​Button​Up(​Mouse​Button​Event​Args)

Invoked when an unhandled MouseLeftButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Mouse​Move(​Mouse​Event​Args)

Invoked when an unhandled MouseMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Mouse​Right​Button​Down(​Mouse​Button​Event​Args)

Invoked when an unhandled MouseRightButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Mouse​Right​Button​Up(​Mouse​Button​Event​Args)

Invoked when an unhandled MouseRightButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Mouse​Up(​Mouse​Button​Event​Args)

Invoked when an unhandled MouseUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Mouse​Wheel(​Mouse​Wheel​Event​Args)

Invoked when an unhandled MouseWheel attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Drag​Enter(​Drag​Event​Args)

Invoked when an unhandled PreviewDragEnter attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Drag​Leave(​Drag​Event​Args)

Invoked when an unhandled PreviewDragLeave attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Drag​Over(​Drag​Event​Args)

Invoked when an unhandled PreviewDragOver attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Drop(​Drag​Event​Args)

Invoked when an unhandled PreviewDrop attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Give​Feedback(​Give​Feedback​Event​Args)

Invoked when an unhandled PreviewGiveFeedback attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Got​Keyboard​Focus(​Keyboard​Focus​Changed​Event​Args)

Invoked when an unhandled PreviewGotKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Key​Down(​Key​Event​Args)

Invoked when an unhandled PreviewKeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Key​Up(​Key​Event​Args)

Invoked when an unhandled PreviewKeyUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Lost​Keyboard​Focus(​Keyboard​Focus​Changed​Event​Args)

Invoked when an unhandled PreviewKeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Mouse​Down(​Mouse​Button​Event​Args)

Invoked when an unhandled PreviewMouseDown attached routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Mouse​Left​Button​Down(​Mouse​Button​Event​Args)

Invoked when an unhandled PreviewMouseLeftButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Mouse​Left​Button​Up(​Mouse​Button​Event​Args)

Invoked when an unhandled PreviewMouseLeftButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Mouse​Move(​Mouse​Event​Args)

Invoked when an unhandled PreviewMouseMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Mouse​Right​Button​Down(​Mouse​Button​Event​Args)

Invoked when an unhandled PreviewMouseRightButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Mouse​Right​Button​Up(​Mouse​Button​Event​Args)

Invoked when an unhandled PreviewMouseRightButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Mouse​Up(​Mouse​Button​Event​Args)

Invoked when an unhandled PreviewMouseUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Mouse​Wheel(​Mouse​Wheel​Event​Args)

Invoked when an unhandled PreviewMouseWheel attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Query​Continue​Drag(​Query​Continue​Drag​Event​Args)

Invoked when an unhandled PreviewQueryContinueDrag attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Stylus​Button​Down(​Stylus​Button​Event​Args)

Invoked when an unhandled PreviewStylusButtonDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Stylus​Button​Up(​Stylus​Button​Event​Args)

Invoked when an unhandled PreviewStylusButtonUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Stylus​Down(​Stylus​Down​Event​Args)

Invoked when an unhandled PreviewStylusDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Stylus​In​Air​Move(​Stylus​Event​Args)

Invoked when an unhandled PreviewStylusInAirMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Stylus​In​Range(​Stylus​Event​Args)

Invoked when an unhandled PreviewStylusInRange attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Stylus​Move(​Stylus​Event​Args)

Invoked when an unhandled PreviewStylusMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Stylus​Out​Of​Range(​Stylus​Event​Args)

Invoked when an unhandled PreviewStylusOutOfRange attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Stylus​System​Gesture(​Stylus​System​Gesture​Event​Args)

Invoked when an unhandled PreviewStylusSystemGesture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Stylus​Up(​Stylus​Event​Args)

Invoked when an unhandled PreviewStylusUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Text​Input(​Text​Composition​Event​Args)

Invoked when an unhandled PreviewTextInput attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Preview​Touch​Down(​Touch​Event​Args)

Provides class handling for the PreviewTouchDown routed event that occurs when a touch presses this element.

On​Preview​Touch​Move(​Touch​Event​Args)

Provides class handling for the PreviewTouchMove routed event that occurs when a touch moves while inside this element.

On​Preview​Touch​Up(​Touch​Event​Args)

Provides class handling for the PreviewTouchUp routed event that occurs when a touch is released inside this element.

On​Query​Continue​Drag(​Query​Continue​Drag​Event​Args)

Invoked when an unhandled QueryContinueDrag attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Query​Cursor(​Query​Cursor​Event​Args)

Invoked when an unhandled QueryCursor attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Stylus​Button​Down(​Stylus​Button​Event​Args)

Invoked when an unhandled StylusButtonDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Stylus​Button​Up(​Stylus​Button​Event​Args)

Invoked when an unhandled StylusButtonUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Stylus​Down(​Stylus​Down​Event​Args)

Invoked when an unhandled StylusDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Stylus​Enter(​Stylus​Event​Args)

Invoked when an unhandled StylusEnter attached event is raised by this element. Implement this method to add class handling for this event.

On​Stylus​In​Air​Move(​Stylus​Event​Args)

Invoked when an unhandled StylusInAirMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Stylus​In​Range(​Stylus​Event​Args)

Invoked when an unhandled StylusInRange attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Stylus​Leave(​Stylus​Event​Args)

Invoked when an unhandled StylusLeave attached event is raised by this element. Implement this method to add class handling for this event.

On​Stylus​Move(​Stylus​Event​Args)

Invoked when an unhandled StylusMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Stylus​Out​Of​Range(​Stylus​Event​Args)

Invoked when an unhandled StylusOutOfRange attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Stylus​System​Gesture(​Stylus​System​Gesture​Event​Args)

Invoked when an unhandled StylusSystemGesture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Stylus​Up(​Stylus​Event​Args)

Invoked when an unhandled StylusUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Text​Input(​Text​Composition​Event​Args)

Invoked when an unhandled TextInput attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

On​Touch​Down(​Touch​Event​Args)

Provides class handling for the TouchDown routed event that occurs when a touch presses inside this element.

On​Touch​Enter(​Touch​Event​Args)

Provides class handling for the TouchEnter routed event that occurs when a touch moves from outside to inside the bounds of this element.

On​Touch​Leave(​Touch​Event​Args)

Provides class handling for the TouchLeave routed event that occurs when a touch moves from inside to outside the bounds of this element.

On​Touch​Move(​Touch​Event​Args)

Provides class handling for the TouchMove routed event that occurs when a touch moves while inside this element.

On​Touch​Up(​Touch​Event​Args)

Provides class handling for the TouchUp routed event that occurs when a touch is released inside this element.

Predict​Focus(​Focus​Navigation​Direction)

When overridden in a derived class, returns the element that would receive focus for a specified focus traversal direction, without actually moving focus to that element.

Raise​Event(​Routed​Event​Args)

Raises a specific routed event. The RoutedEvent to be raised is identified within the RoutedEventArgs instance that is provided (as the RoutedEvent property of that event data).

Release​All​Touch​Captures()

Releases all captured touch devices from this element.

Release​Mouse​Capture()

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

Release​Stylus​Capture()

Releases the stylus device capture, if this element held the capture.

Release​Touch​Capture(​Touch​Device)

Attempts to release the specified touch device from this element.

Remove​Handler(​Routed​Event, ​Delegate)

Removes the specified routed event handler from this element.

Should​Serialize​Command​Bindings()

Returns whether serialization processes should serialize the contents of the CommandBindings property on instances of this class.

Should​Serialize​Input​Bindings()

Returns whether serialization processes should serialize the contents of the InputBindings property on instances of this class.

Events

Drag​Enter

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

Drag​Leave

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

Drag​Over

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

Drop

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

Focusable​Changed

Occurs when the value of the Focusable property changes.

Give​Feedback

Occurs when the input system reports an underlying drag-and-drop event that involves this element.

Got​Focus

Occurs when this element gets logical focus.

Got​Keyboard​Focus

Occurs when the keyboard is focused on this element.

Got​Mouse​Capture

Occurs when this element captures the mouse.

Got​Stylus​Capture

Occurs when this element captures the stylus.

Got​Touch​Capture

Occurs when a touch is captured to this element.

Is​Enabled​Changed

Occurs when the value of the IsEnabled property on this element changes.

Is​Keyboard​Focused​Changed

Occurs when the value of the IsKeyboardFocused property changes on this element.

Is​Keyboard​Focus​Within​Changed

Occurs when the value of the IsKeyboardFocusWithinChanged property changes on this element.

Is​Mouse​Captured​Changed

Occurs when the value of the IsMouseCaptured property changes on this element.

Is​Mouse​Capture​Within​Changed

Occurs when the value of the IsMouseCaptureWithinProperty changes on this element.

Is​Mouse​Directly​Over​Changed

Occurs when the value of the IsMouseDirectlyOver property changes on this element.

Is​Stylus​Captured​Changed

Occurs when the value of the IsStylusCaptured property changes on this element.

Is​Stylus​Capture​Within​Changed

Occurs when the value of the IsStylusCaptureWithin property changes on this element.

Is​Stylus​Directly​Over​Changed

Occurs when the value of the IsStylusDirectlyOver property changes on this element.

Key​Down

Occurs when a key is pressed while focus is on this element.

Key​Up

Occurs when a key is released while focus is on this element.

Lost​Focus

Occurs when this element loses logical focus.

Lost​Keyboard​Focus

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

Lost​Mouse​Capture

Occurs when this element loses mouse capture.

Lost​Stylus​Capture

Occurs when this element loses stylus capture.

Lost​Touch​Capture

Occurs when this element loses a touch capture.

Mouse​Down

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

Mouse​Enter

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

Mouse​Leave

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

Mouse​Left​Button​Down

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

Mouse​Left​Button​Up

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

Mouse​Move

Occurs when the mouse pointer moves while over this element.

Mouse​Right​Button​Down

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

Mouse​Right​Button​Up

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

Mouse​Up

Occurs when any mouse button is released over this element.

Mouse​Wheel

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

Preview​Drag​Enter

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

Preview​Drag​Leave

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

Preview​Drag​Over

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

Preview​Drop

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

Preview​Give​Feedback

Occurs when a drag-and-drop operation is started.

Preview​Got​Keyboard​Focus

Occurs when the keyboard is focused on this element.

Preview​Key​Down

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

Preview​Key​Up

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

Preview​Lost​Keyboard​Focus

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

Preview​Mouse​Down

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

Preview​Mouse​Left​Button​Down

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

Preview​Mouse​Left​Button​Up

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

Preview​Mouse​Move

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

Preview​Mouse​Right​Button​Down

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

Preview​Mouse​Right​Button​Up

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

Preview​Mouse​Up

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

Preview​Mouse​Wheel

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

Preview​Query​Continue​Drag

Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.

Preview​Stylus​Button​Down

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

Preview​Stylus​Button​Up

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

Preview​Stylus​Down

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

Preview​Stylus​In​Air​Move

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

Preview​Stylus​In​Range

Occurs when the stylus is close enough to the digitizer to be detected, while over this element.

Preview​Stylus​Move

Occurs when the stylus moves while over the element. The stylus must move while being detected by the digitizer to raise this event, otherwise, PreviewStylusInAirMove is raised instead.

Preview​Stylus​Out​Of​Range

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

Preview​Stylus​System​Gesture

Occurs when a user performs one of several stylus gestures.

Preview​Stylus​Up

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

Preview​Text​Input

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

Preview​Touch​Down

Occurs when a finger touches the screen while the finger is over this element.

Preview​Touch​Move

Occurs when a finger moves on the screen while the finger is over this element.

Preview​Touch​Up

Occurs when a finger is raised off of the screen while the finger is over this element.

Query​Continue​Drag

Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.

Query​Cursor

Occurs when the cursor is requested to display. This event is raised on an element each time that the mouse pointer moves to a new location, which means the cursor object might need to be changed based on its new position.

Stylus​Button​Down

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

Stylus​Button​Up

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

Stylus​Down

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

Stylus​Enter

Occurs when the stylus enters the bounds of this element.

Stylus​In​Air​Move

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

Stylus​In​Range

Occurs when the stylus is close enough to the digitizer to be detected, while over this element.

Stylus​Leave

Occurs when the stylus leaves the bounds of the element.

Stylus​Move

Occurs when the stylus moves over this element. The stylus must move while on the digitizer to raise this event. Otherwise, StylusInAirMove is raised instead.

Stylus​Out​Of​Range

Occurs when the stylus is too far from the digitizer to be detected, while over this element.

Stylus​System​Gesture

Occurs when a user performs one of several stylus gestures.

Stylus​Up

Occurs when the user raises the stylus off the digitizer while it is over this element.

Text​Input

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

Touch​Down

Occurs when a finger touches the screen while the finger is over this element.

Touch​Enter

Occurs when a touch moves from outside to inside the bounds of this element.

Touch​Leave

Occurs when a touch moves from inside to outside the bounds of this element.

Touch​Move

Occurs when a finger moves on the screen while the finger is over this element.

Touch​Up

Occurs when a finger is raised off of the screen while the finger is over this element.