Editare

Partajați prin


FrameworkContentElement Class

Definition

FrameworkContentElement is the WPF framework-level implementation and expansion of the ContentElement base class. FrameworkContentElement adds support for additional input APIs (including tooltips and context menus), storyboards, data context for data binding, styles support, and logical tree helper APIs.

public ref class FrameworkContentElement : System::Windows::ContentElement, System::ComponentModel::ISupportInitialize, System::Windows::IFrameworkInputElement
public ref class FrameworkContentElement : System::Windows::ContentElement, System::ComponentModel::ISupportInitialize, System::Windows::IFrameworkInputElement, System::Windows::Markup::IQueryAmbient
[System.Windows.Markup.RuntimeNameProperty("Name")]
[System.Windows.Markup.XmlLangProperty("Language")]
[System.Windows.StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=typeof(System.Windows.Controls.Control))]
public class FrameworkContentElement : System.Windows.ContentElement, System.ComponentModel.ISupportInitialize, System.Windows.IFrameworkInputElement
[System.Windows.Markup.RuntimeNameProperty("Name")]
[System.Windows.Markup.XmlLangProperty("Language")]
[System.Windows.StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=typeof(System.Windows.Controls.Control))]
[System.Windows.Markup.UsableDuringInitialization(true)]
public class FrameworkContentElement : System.Windows.ContentElement, System.ComponentModel.ISupportInitialize, System.Windows.IFrameworkInputElement, System.Windows.Markup.IQueryAmbient
[<System.Windows.Markup.RuntimeNameProperty("Name")>]
[<System.Windows.Markup.XmlLangProperty("Language")>]
[<System.Windows.StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=typeof(System.Windows.Controls.Control))>]
type FrameworkContentElement = class
    inherit ContentElement
    interface IFrameworkInputElement
    interface IInputElement
    interface ISupportInitialize
[<System.Windows.Markup.RuntimeNameProperty("Name")>]
[<System.Windows.Markup.XmlLangProperty("Language")>]
[<System.Windows.StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=typeof(System.Windows.Controls.Control))>]
[<System.Windows.Markup.UsableDuringInitialization(true)>]
type FrameworkContentElement = class
    inherit ContentElement
    interface IFrameworkInputElement
    interface IInputElement
    interface ISupportInitialize
    interface IQueryAmbient
[<System.Windows.Markup.RuntimeNameProperty("Name")>]
[<System.Windows.Markup.XmlLangProperty("Language")>]
[<System.Windows.StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=typeof(System.Windows.Controls.Control))>]
[<System.Windows.Markup.UsableDuringInitialization(true)>]
type FrameworkContentElement = class
    inherit ContentElement
    interface ISupportInitialize
    interface IFrameworkInputElement
    interface IInputElement
    interface IQueryAmbient
Public Class FrameworkContentElement
Inherits ContentElement
Implements IFrameworkInputElement, ISupportInitialize
Public Class FrameworkContentElement
Inherits ContentElement
Implements IFrameworkInputElement, IQueryAmbient, ISupportInitialize
Inheritance
Derived
Attributes
Implements

Remarks

FrameworkContentElement does not yet define its own rendering behavior; instantiating an actual FrameworkContentElement class instance in code or markup is possible but displays nothing in a WPF application user interface (UI). Rendering logic must be provided by classes that take FrameworkContentElement child elements as part of their content model, or in FrameworkContentElement derived classes.

FrameworkContentElement deliberately parallels many of the same APIs as FrameworkElement. Note that certain APIs found on FrameworkElement will not have a FrameworkContentElement equivalent. Several of the FrameworkElement APIs are for functionality such as geometry representation or layout, which are not relevant for a FrameworkContentElement.

The majority of existing FrameworkContentElement derived classes will be found in the System.Windows.Documents namespace. Many of these derived classes implement elements for the flow document model. Certain derived classes such as Hyperlink have some control-like functionality, but are derived from FrameworkContentElement such that the control-like elements can still participate in the flow document model.

Constructors

FrameworkContentElement()

Initializes a new instance of the FrameworkContentElement class.

Fields

BindingGroupProperty

Identifies the BindingGroup dependency property.

ContextMenuClosingEvent

Identifies the ContextMenuClosingRouted Events Overview.

ContextMenuOpeningEvent

Identifies the ContextMenuOpeningRouted Events Overview.

ContextMenuProperty

Identifies the ContextMenu dependency property.

CursorProperty

Identifies the Cursor dependency property.

DataContextProperty

Identifies the DataContext dependency property.

DefaultStyleKeyProperty

Identifies the DefaultStyleKey dependency property.

FocusVisualStyleProperty

Identifies the FocusVisualStyle dependency property.

ForceCursorProperty

Identifies the ForceCursor dependency property.

InputScopeProperty

Identifies the InputScope dependency property.

LanguageProperty

Identifies the Language dependency property.

LoadedEvent

Identifies the LoadedRouted Events Overview.

NameProperty

Identifies the Name dependency property.

OverridesDefaultStyleProperty

Identifies the OverridesDefaultStyle dependency property.

StyleProperty

Identifies the Style dependency property.

TagProperty

Identifies the Tag dependency property.

ToolTipClosingEvent

Identifies the ToolTipClosingRouted Events Overview.

ToolTipOpeningEvent

Identifies the ToolTipOpeningRouted Events Overview.

ToolTipProperty

Identifies the ToolTip dependency property.

UnloadedEvent

Identifies the UnloadedRouted Events Overview.

Properties

AllowDrop

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

(Inherited from ContentElement)
AreAnyTouchesCaptured

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

(Inherited from ContentElement)
AreAnyTouchesCapturedWithin

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

(Inherited from ContentElement)
AreAnyTouchesDirectlyOver

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

(Inherited from ContentElement)
AreAnyTouchesOver

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

(Inherited from ContentElement)
BindingGroup

Gets or sets the BindingGroup that is used for the element.

CommandBindings

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

(Inherited from ContentElement)
ContextMenu

Gets or sets the context menu element that should appear whenever the context menu is requested via user interface (UI) from within this element.

Cursor

Gets or sets the cursor that displays when the mouse pointer is over this element.

DataContext

Gets or sets the data context for an element when it participates in data binding.

DefaultStyleKey

Gets or sets the key to use to find the style template for this control in themes.

DependencyObjectType

Gets the DependencyObjectType that wraps the CLR type of this instance.

(Inherited from DependencyObject)
Dispatcher

Gets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
Focusable

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

(Inherited from ContentElement)
FocusVisualStyle

Gets or sets an object that enables customization of appearance, effects, or other style characteristics that will apply to this element when it captures keyboard focus.

ForceCursor

Gets or sets a value indicating whether this FrameworkContentElement should force the user interface (UI) to render the cursor as declared by this instance's Cursor property.

HasAnimatedProperties

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

(Inherited from ContentElement)
InputBindings

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

(Inherited from ContentElement)
InputScope

Gets or sets the context for input used by this FrameworkContentElement.

IsEnabled

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

(Inherited from ContentElement)
IsEnabledCore

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

(Inherited from ContentElement)
IsFocused

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

(Inherited from ContentElement)
IsInitialized

Gets a value indicating whether this element has been initialized, either by being loaded as Extensible Application Markup Language (XAML), or by explicitly having its EndInit() method called.

IsInputMethodEnabled

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.

(Inherited from ContentElement)
IsKeyboardFocused

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

(Inherited from ContentElement)
IsKeyboardFocusWithin

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

(Inherited from ContentElement)
IsLoaded

Gets a value indicating whether this element has been loaded for presentation.

IsMouseCaptured

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

(Inherited from ContentElement)
IsMouseCaptureWithin

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

(Inherited from ContentElement)
IsMouseDirectlyOver

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

(Inherited from ContentElement)
IsMouseOver

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

(Inherited from ContentElement)
IsSealed

Gets a value that indicates whether this instance is currently sealed (read-only).

(Inherited from DependencyObject)
IsStylusCaptured

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

(Inherited from ContentElement)
IsStylusCaptureWithin

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

(Inherited from ContentElement)
IsStylusDirectlyOver

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

(Inherited from ContentElement)
IsStylusOver

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

(Inherited from ContentElement)
Language

Gets or sets localization/globalization language information that applies to an individual element.

LogicalChildren

Gets an enumerator for the logical child elements of this element.

Name

Gets or sets the identifying name of the element. The name provides an instance reference so that programmatic code-behind, such as event handler code, can refer to an element once it is constructed during parsing of XAML.

OverridesDefaultStyle

Gets or sets a value indicating whether this element incorporates style properties from theme styles.

Parent

Gets the parent in the logical tree for this element.

Resources

Gets or sets the current locally-defined resource dictionary.

Style

Gets or sets the style to be used by this element.

Tag

Gets or sets an arbitrary object value that can be used to store custom information about this element.

TemplatedParent

Gets a reference to the template parent of this element. This property is not relevant if the element was not created through a template.

ToolTip

Gets or sets the tool-tip object that is displayed for this element in the user interface (UI).

TouchesCaptured

Gets all touch devices that are captured to this element.

(Inherited from ContentElement)
TouchesCapturedWithin

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

(Inherited from ContentElement)
TouchesDirectlyOver

Gets all touch devices that are over this element.

(Inherited from ContentElement)
TouchesOver

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

(Inherited from ContentElement)

Methods

AddHandler(RoutedEvent, 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.

(Inherited from ContentElement)
AddHandler(RoutedEvent, Delegate)

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

(Inherited from ContentElement)
AddLogicalChild(Object)

Adds the provided element as a child of this element.

AddToEventRoute(EventRoute, RoutedEventArgs)

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

(Inherited from ContentElement)
ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)

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.

(Inherited from ContentElement)
ApplyAnimationClock(DependencyProperty, AnimationClock)

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

(Inherited from ContentElement)
BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)

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.

(Inherited from ContentElement)
BeginAnimation(DependencyProperty, AnimationTimeline)

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

(Inherited from ContentElement)
BeginInit()

Called before an element is initialized.

BeginStoryboard(Storyboard, HandoffBehavior, Boolean)

Begins the sequence of actions that are contained in the provided storyboard, with specified state for control of the animation after it is started.

BeginStoryboard(Storyboard, HandoffBehavior)

Begins the sequence of actions that are contained in the provided storyboard, with options specified for what should occur if the property is already animated.

BeginStoryboard(Storyboard)

Begins the sequence of actions that are contained in the provided storyboard.

BringIntoView()

Attempts to bring this element into view, within any scrollable regions it is contained within.

CaptureMouse()

Attempts to force capture of the mouse to this element.

(Inherited from ContentElement)
CaptureStylus()

Attempts to force capture of the stylus to this element.

(Inherited from ContentElement)
CaptureTouch(TouchDevice)

Attempts to force capture of a touch to this element.

(Inherited from ContentElement)
CheckAccess()

Determines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
ClearValue(DependencyProperty)

Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier.

(Inherited from DependencyObject)
ClearValue(DependencyPropertyKey)

Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey.

(Inherited from DependencyObject)
CoerceValue(DependencyProperty)

Coerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject.

(Inherited from DependencyObject)
EndInit()

Called immediately after an element is initialized.

Equals(Object)

Determines whether a provided DependencyObject is equivalent to the current DependencyObject.

(Inherited from DependencyObject)
FindName(String)

Finds an element that has the provided identifier name.

FindResource(Object)

Searches for a resource with the specified key, and will throw an exception if the requested resource is not found.

Focus()

Attempts to set focus to this element.

(Inherited from ContentElement)
GetAnimationBaseValue(DependencyProperty)

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

(Inherited from ContentElement)
GetBindingExpression(DependencyProperty)

Gets the BindingExpression for the specified property's binding.

GetHashCode()

Gets a hash code for this DependencyObject.

(Inherited from DependencyObject)
GetLocalValueEnumerator()

Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject.

(Inherited from DependencyObject)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetUIParentCore()

Returns an alternative logical parent for this element if there is no visual parent. In this case, a FrameworkContentElement parent is always the same value as the Parent property.

GetValue(DependencyProperty)

Returns the current effective value of a dependency property on this instance of a DependencyObject.

(Inherited from DependencyObject)
InvalidateProperty(DependencyProperty)

Re-evaluates the effective value for the specified dependency property.

(Inherited from DependencyObject)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MoveFocus(TraversalRequest)

Moves the keyboard focus from this element to another element.

OnContextMenuClosing(ContextMenuEventArgs)

Invoked whenever the ContextMenuClosing routed event reaches this class in its route. Implement this method to add class handling for this event.

OnContextMenuOpening(ContextMenuEventArgs)

Invoked whenever the ContextMenuOpening routed event reaches this class in its route. Implement this method to add class handling for this event.

OnCreateAutomationPeer()

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

(Inherited from ContentElement)
OnDragEnter(DragEventArgs)

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.

(Inherited from ContentElement)
OnDragLeave(DragEventArgs)

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.

(Inherited from ContentElement)
OnDragOver(DragEventArgs)

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.

(Inherited from ContentElement)
OnDrop(DragEventArgs)

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.

(Inherited from ContentElement)
OnGiveFeedback(GiveFeedbackEventArgs)

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.

(Inherited from ContentElement)
OnGotFocus(RoutedEventArgs)

Class handler for the GotFocus event.

OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)

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.

(Inherited from ContentElement)
OnGotMouseCapture(MouseEventArgs)

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.

(Inherited from ContentElement)
OnGotStylusCapture(StylusEventArgs)

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.

(Inherited from ContentElement)
OnGotTouchCapture(TouchEventArgs)

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

(Inherited from ContentElement)
OnInitialized(EventArgs)

Raises the Initialized event. This method is invoked whenever IsInitialized is set to true.

OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs)

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

(Inherited from ContentElement)
OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)

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

(Inherited from ContentElement)
OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs)

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

(Inherited from ContentElement)
OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs)

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

(Inherited from ContentElement)
OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs)

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

(Inherited from ContentElement)
OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs)

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

(Inherited from ContentElement)
OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs)

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

(Inherited from ContentElement)
OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs)

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

(Inherited from ContentElement)
OnKeyDown(KeyEventArgs)

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.

(Inherited from ContentElement)
OnKeyUp(KeyEventArgs)

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.

(Inherited from ContentElement)
OnLostFocus(RoutedEventArgs)

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

(Inherited from ContentElement)
OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)

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.

(Inherited from ContentElement)
OnLostMouseCapture(MouseEventArgs)

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.

(Inherited from ContentElement)
OnLostStylusCapture(StylusEventArgs)

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.

(Inherited from ContentElement)
OnLostTouchCapture(TouchEventArgs)

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

(Inherited from ContentElement)
OnMouseDown(MouseButtonEventArgs)

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.

(Inherited from ContentElement)
OnMouseEnter(MouseEventArgs)

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

(Inherited from ContentElement)
OnMouseLeave(MouseEventArgs)

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

(Inherited from ContentElement)
OnMouseLeftButtonDown(MouseButtonEventArgs)

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

(Inherited from ContentElement)
OnMouseLeftButtonUp(MouseButtonEventArgs)

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.

(Inherited from ContentElement)
OnMouseMove(MouseEventArgs)

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.

(Inherited from ContentElement)
OnMouseRightButtonDown(MouseButtonEventArgs)

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.

(Inherited from ContentElement)
OnMouseRightButtonUp(MouseButtonEventArgs)

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.

(Inherited from ContentElement)
OnMouseUp(MouseButtonEventArgs)

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.

(Inherited from ContentElement)
OnMouseWheel(MouseWheelEventArgs)

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.

(Inherited from ContentElement)
OnPreviewDragEnter(DragEventArgs)

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.

(Inherited from ContentElement)
OnPreviewDragLeave(DragEventArgs)

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.

(Inherited from ContentElement)
OnPreviewDragOver(DragEventArgs)

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.

(Inherited from ContentElement)
OnPreviewDrop(DragEventArgs)

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.

(Inherited from ContentElement)
OnPreviewGiveFeedback(GiveFeedbackEventArgs)

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.

(Inherited from ContentElement)
OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs)

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.

(Inherited from ContentElement)
OnPreviewKeyDown(KeyEventArgs)

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.

(Inherited from ContentElement)
OnPreviewKeyUp(KeyEventArgs)

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.

(Inherited from ContentElement)
OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs)

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.

(Inherited from ContentElement)
OnPreviewMouseDown(MouseButtonEventArgs)

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.

(Inherited from ContentElement)
OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)

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.

(Inherited from ContentElement)
OnPreviewMouseLeftButtonUp(MouseButtonEventArgs)

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.

(Inherited from ContentElement)
OnPreviewMouseMove(MouseEventArgs)

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.

(Inherited from ContentElement)
OnPreviewMouseRightButtonDown(MouseButtonEventArgs)

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.

(Inherited from ContentElement)
OnPreviewMouseRightButtonUp(MouseButtonEventArgs)

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.

(Inherited from ContentElement)
OnPreviewMouseUp(MouseButtonEventArgs)

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.

(Inherited from ContentElement)
OnPreviewMouseWheel(MouseWheelEventArgs)

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.

(Inherited from ContentElement)
OnPreviewQueryContinueDrag(QueryContinueDragEventArgs)

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.

(Inherited from ContentElement)
OnPreviewStylusButtonDown(StylusButtonEventArgs)

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.

(Inherited from ContentElement)
OnPreviewStylusButtonUp(StylusButtonEventArgs)

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.

(Inherited from ContentElement)
OnPreviewStylusDown(StylusDownEventArgs)

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.

(Inherited from ContentElement)
OnPreviewStylusInAirMove(StylusEventArgs)

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.

(Inherited from ContentElement)
OnPreviewStylusInRange(StylusEventArgs)

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.

(Inherited from ContentElement)
OnPreviewStylusMove(StylusEventArgs)

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.

(Inherited from ContentElement)
OnPreviewStylusOutOfRange(StylusEventArgs)

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.

(Inherited from ContentElement)
OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs)

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.

(Inherited from ContentElement)
OnPreviewStylusUp(StylusEventArgs)

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.

(Inherited from ContentElement)
OnPreviewTextInput(TextCompositionEventArgs)

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.

(Inherited from ContentElement)
OnPreviewTouchDown(TouchEventArgs)

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

(Inherited from ContentElement)
OnPreviewTouchMove(TouchEventArgs)

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

(Inherited from ContentElement)
OnPreviewTouchUp(TouchEventArgs)

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

(Inherited from ContentElement)
OnPropertyChanged(DependencyPropertyChangedEventArgs)

Invoked whenever the effective value of any dependency property on this FrameworkContentElement has been updated. The specific dependency property that changed is reported in the arguments parameter. Overrides OnPropertyChanged(DependencyPropertyChangedEventArgs).

OnQueryContinueDrag(QueryContinueDragEventArgs)

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.

(Inherited from ContentElement)
OnQueryCursor(QueryCursorEventArgs)

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.

(Inherited from ContentElement)
OnStyleChanged(Style, Style)

Invoked when the style that is in use on this element changes.

OnStylusButtonDown(StylusButtonEventArgs)

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.

(Inherited from ContentElement)
OnStylusButtonUp(StylusButtonEventArgs)

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.

(Inherited from ContentElement)
OnStylusDown(StylusDownEventArgs)

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.

(Inherited from ContentElement)
OnStylusEnter(StylusEventArgs)

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

(Inherited from ContentElement)
OnStylusInAirMove(StylusEventArgs)

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.

(Inherited from ContentElement)
OnStylusInRange(StylusEventArgs)

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.

(Inherited from ContentElement)
OnStylusLeave(StylusEventArgs)

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

(Inherited from ContentElement)
OnStylusMove(StylusEventArgs)

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.

(Inherited from ContentElement)
OnStylusOutOfRange(StylusEventArgs)

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.

(Inherited from ContentElement)
OnStylusSystemGesture(StylusSystemGestureEventArgs)

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.

(Inherited from ContentElement)
OnStylusUp(StylusEventArgs)

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.

(Inherited from ContentElement)
OnTextInput(TextCompositionEventArgs)

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.

(Inherited from ContentElement)
OnToolTipClosing(ToolTipEventArgs)

Invoked whenever the ToolTipClosing routed event reaches this class in its route. Implement this method to add class handling for this event.

OnToolTipOpening(ToolTipEventArgs)

Invoked whenever the ToolTipOpening routed event reaches this class in its route. Implement this method to add class handling for this event.

OnTouchDown(TouchEventArgs)

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

(Inherited from ContentElement)
OnTouchEnter(TouchEventArgs)

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

(Inherited from ContentElement)
OnTouchLeave(TouchEventArgs)

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

(Inherited from ContentElement)
OnTouchMove(TouchEventArgs)

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

(Inherited from ContentElement)
OnTouchUp(TouchEventArgs)

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

(Inherited from ContentElement)
PredictFocus(FocusNavigationDirection)

Determines the next element that would receive focus relative to this element for a provided focus movement direction, but does not actually move the focus. This method is sealed and cannot be overridden.

RaiseEvent(RoutedEventArgs)

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).

(Inherited from ContentElement)
ReadLocalValue(DependencyProperty)

Returns the local value of a dependency property, if it exists.

(Inherited from DependencyObject)
RegisterName(String, Object)

Provides an accessor that simplifies access to the NameScope registration method.

ReleaseAllTouchCaptures()

Releases all captured touch devices from this element.

(Inherited from ContentElement)
ReleaseMouseCapture()

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

(Inherited from ContentElement)
ReleaseStylusCapture()

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

(Inherited from ContentElement)
ReleaseTouchCapture(TouchDevice)

Attempts to release the specified touch device from this element.

(Inherited from ContentElement)
RemoveHandler(RoutedEvent, Delegate)

Removes the specified routed event handler from this element.

(Inherited from ContentElement)
RemoveLogicalChild(Object)

Removes the specified element from the logical tree for this element.

SetBinding(DependencyProperty, BindingBase)

Attaches a binding to this element, based on the provided binding object.

SetBinding(DependencyProperty, String)

Attaches a binding to this element, based on the provided source property name as a path qualification to the data source.

SetCurrentValue(DependencyProperty, Object)

Sets the value of a dependency property without changing its value source.

(Inherited from DependencyObject)
SetResourceReference(DependencyProperty, Object)

Searches for a resource with the specified name and sets up a resource reference to it for the specified property.

SetValue(DependencyProperty, Object)

Sets the local value of a dependency property, specified by its dependency property identifier.

(Inherited from DependencyObject)
SetValue(DependencyPropertyKey, Object)

Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.

(Inherited from DependencyObject)
ShouldSerializeCommandBindings()

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

(Inherited from ContentElement)
ShouldSerializeInputBindings()

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

(Inherited from ContentElement)
ShouldSerializeProperty(DependencyProperty)

Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.

(Inherited from DependencyObject)
ShouldSerializeResources()

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

ShouldSerializeStyle()

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

ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryFindResource(Object)

Searches for a resource with the specified key, and returns that resource if found.

UnregisterName(String)

Simplifies access to the NameScope de-registration method.

UpdateDefaultStyle()

Reapplies the default style to the current FrameworkContentElement.

VerifyAccess()

Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)

Events

ContextMenuClosing

Occurs just before any context menu on the element is closed.

ContextMenuOpening

Occurs when any context menu on the element is opened.

DataContextChanged

Occurs when this element's data context changes.

DragEnter

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

(Inherited from ContentElement)
DragLeave

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

(Inherited from ContentElement)
DragOver

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

(Inherited from ContentElement)
Drop

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

(Inherited from ContentElement)
FocusableChanged

Occurs when the value of the Focusable property changes.

(Inherited from ContentElement)
GiveFeedback

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

(Inherited from ContentElement)
GotFocus

Occurs when this element gets logical focus.

(Inherited from ContentElement)
GotKeyboardFocus

Occurs when the keyboard is focused on this element.

(Inherited from ContentElement)
GotMouseCapture

Occurs when this element captures the mouse.

(Inherited from ContentElement)
GotStylusCapture

Occurs when this element captures the stylus.

(Inherited from ContentElement)
GotTouchCapture

Occurs when a touch is captured to this element.

(Inherited from ContentElement)
Initialized

Occurs when this FrameworkContentElement is initialized. This coincides with cases where the value of the IsInitialized property changes from false (or undefined) to true.

IsEnabledChanged

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

(Inherited from ContentElement)
IsKeyboardFocusedChanged

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

(Inherited from ContentElement)
IsKeyboardFocusWithinChanged

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

(Inherited from ContentElement)
IsMouseCapturedChanged

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

(Inherited from ContentElement)
IsMouseCaptureWithinChanged

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

(Inherited from ContentElement)
IsMouseDirectlyOverChanged

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

(Inherited from ContentElement)
IsStylusCapturedChanged

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

(Inherited from ContentElement)
IsStylusCaptureWithinChanged

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

(Inherited from ContentElement)
IsStylusDirectlyOverChanged

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

(Inherited from ContentElement)
KeyDown

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

(Inherited from ContentElement)
KeyUp

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

(Inherited from ContentElement)
Loaded

Occurs when the element is laid out, rendered, and ready for interaction.

LostFocus

Occurs when this element loses logical focus.

(Inherited from ContentElement)
LostKeyboardFocus

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

(Inherited from ContentElement)
LostMouseCapture

Occurs when this element loses mouse capture.

(Inherited from ContentElement)
LostStylusCapture

Occurs when this element loses stylus capture.

(Inherited from ContentElement)
LostTouchCapture

Occurs when this element loses a touch capture.

(Inherited from ContentElement)
MouseDown

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

(Inherited from ContentElement)
MouseEnter

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

(Inherited from ContentElement)
MouseLeave

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

(Inherited from ContentElement)
MouseLeftButtonDown

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

(Inherited from ContentElement)
MouseLeftButtonUp

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

(Inherited from ContentElement)
MouseMove

Occurs when the mouse pointer moves while over this element.

(Inherited from ContentElement)
MouseRightButtonDown

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

(Inherited from ContentElement)
MouseRightButtonUp

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

(Inherited from ContentElement)
MouseUp

Occurs when any mouse button is released over this element.

(Inherited from ContentElement)
MouseWheel

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

(Inherited from ContentElement)
PreviewDragEnter

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

(Inherited from ContentElement)
PreviewDragLeave

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

(Inherited from ContentElement)
PreviewDragOver

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

(Inherited from ContentElement)
PreviewDrop

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

(Inherited from ContentElement)
PreviewGiveFeedback

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

(Inherited from ContentElement)
PreviewGotKeyboardFocus

Occurs when the keyboard is focused on this element.

(Inherited from ContentElement)
PreviewKeyDown

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

(Inherited from ContentElement)
PreviewKeyUp

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

(Inherited from ContentElement)
PreviewLostKeyboardFocus

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

(Inherited from ContentElement)
PreviewMouseDown

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

(Inherited from ContentElement)
PreviewMouseLeftButtonDown

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

(Inherited from ContentElement)
PreviewMouseLeftButtonUp

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

(Inherited from ContentElement)
PreviewMouseMove

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

(Inherited from ContentElement)
PreviewMouseRightButtonDown

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

(Inherited from ContentElement)
PreviewMouseRightButtonUp

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

(Inherited from ContentElement)
PreviewMouseUp

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

(Inherited from ContentElement)
PreviewMouseWheel

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

(Inherited from ContentElement)
PreviewQueryContinueDrag

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

(Inherited from ContentElement)
PreviewStylusButtonDown

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

(Inherited from ContentElement)
PreviewStylusButtonUp

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

(Inherited from ContentElement)
PreviewStylusDown

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

(Inherited from ContentElement)
PreviewStylusInAirMove

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

(Inherited from ContentElement)
PreviewStylusInRange

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

(Inherited from ContentElement)
PreviewStylusMove

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.

(Inherited from ContentElement)
PreviewStylusOutOfRange

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

(Inherited from ContentElement)
PreviewStylusSystemGesture

Occurs when a user performs one of several stylus gestures.

(Inherited from ContentElement)
PreviewStylusUp

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

(Inherited from ContentElement)
PreviewTextInput

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

(Inherited from ContentElement)
PreviewTouchDown

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

(Inherited from ContentElement)
PreviewTouchMove

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

(Inherited from ContentElement)
PreviewTouchUp

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

(Inherited from ContentElement)
QueryContinueDrag

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

(Inherited from ContentElement)
QueryCursor

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.

(Inherited from ContentElement)
SourceUpdated

Occurs when any associated data source participating in a binding on this element changes.

StylusButtonDown

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

(Inherited from ContentElement)
StylusButtonUp

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

(Inherited from ContentElement)
StylusDown

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

(Inherited from ContentElement)
StylusEnter

Occurs when the stylus enters the bounds of this element.

(Inherited from ContentElement)
StylusInAirMove

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

(Inherited from ContentElement)
StylusInRange

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

(Inherited from ContentElement)
StylusLeave

Occurs when the stylus leaves the bounds of the element.

(Inherited from ContentElement)
StylusMove

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.

(Inherited from ContentElement)
StylusOutOfRange

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

(Inherited from ContentElement)
StylusSystemGesture

Occurs when a user performs one of several stylus gestures.

(Inherited from ContentElement)
StylusUp

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

(Inherited from ContentElement)
TargetUpdated

Occurs when any associated target property participating in a binding on this element changes.

TextInput

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

(Inherited from ContentElement)
ToolTipClosing

Occurs just before any tooltip on the element is closed.

ToolTipOpening

Occurs when any tooltip on the element is opened.

TouchDown

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

(Inherited from ContentElement)
TouchEnter

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

(Inherited from ContentElement)
TouchLeave

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

(Inherited from ContentElement)
TouchMove

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

(Inherited from ContentElement)
TouchUp

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

(Inherited from ContentElement)
Unloaded

Occurs when the element is removed from an element tree of loaded elements.

Explicit Interface Implementations

IQueryAmbient.IsAmbientPropertyAvailable(String)

For a description of this member, see the IsAmbientPropertyAvailable(String) method.

Applies to

See also