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

UIElement Members

UIElement is a base class for WPF core level implementations building on Windows Presentation Foundation (WPF) elements and basic presentation characteristics.

The following tables list the members exposed by the UIElement type.

  Name Description
Public method UIElement Initializes a new instance of the UIElement class.
Top
  Name Description
Public field Static AllowDropProperty Identifies the AllowDrop dependency property.
Public field Static BitmapEffectInputProperty Identifies the BitmapEffectInputdependency property. This field is read-only.
Public field Static BitmapEffectProperty Identifies the BitmapEffectdependency property. This field is read-only.
Public field Static ClipProperty Identifies the Clip dependency property.
Public field Static ClipToBoundsProperty Identifies the ClipToBounds dependency property.
Public field Static DragEnterEvent Identifies the DragEnter routed event.
Public field Static DragLeaveEvent Identifies the DragLeave routed event.
Public field Static DragOverEvent Identifies the DragOver routed event.
Public field Static DropEvent Identifies the Drop routed event.
Public field Static FocusableProperty Identifies the Focusable dependency property.
Public field Static GiveFeedbackEvent Identifies the GiveFeedback routed event.
Public field Static GotFocusEvent Identifies the GotFocus routed event.
Public field Static GotKeyboardFocusEvent Identifies the GotKeyboardFocus routed event.
Public field Static GotMouseCaptureEvent Identifies the GotMouseCapture routed event.
Public field Static GotStylusCaptureEvent Identifies the GotStylusCapture routed event.
Public field Static IsEnabledProperty Identifies the IsEnabled dependency property.
Public field Static IsFocusedProperty Identifies the IsFocused dependency property.
Public field Static IsHitTestVisibleProperty Identifies the IsHitTestVisible  dependency property.
Public field Static IsKeyboardFocusedProperty Identifies the IsKeyboardFocused dependency property.
Public field Static IsKeyboardFocusWithinProperty Identifies the IsKeyboardFocusWithin dependency property.
Public field Static IsMouseCapturedProperty Identifies the IsMouseCaptured dependency property.
Public field Static IsMouseCaptureWithinProperty Identifies the IsMouseCaptureWithin dependency property.
Public field Static IsMouseDirectlyOverProperty Identifies the IsMouseDirectlyOver dependency property.
Public field Static IsMouseOverProperty Identifies the IsMouseOver dependency property.
Public field Static IsStylusCapturedProperty Identifies the IsStylusCaptured dependency property.
Public field Static IsStylusCaptureWithinProperty Identifies the IsStylusCaptureWithin dependency property.
Public field Static IsStylusDirectlyOverProperty Identifies the IsStylusDirectlyOver dependency property.
Public field Static IsStylusOverProperty Identifies the IsStylusOver dependency property.
Public field Static IsVisibleProperty Identifies the IsVisible dependency property.
Public field Static KeyDownEvent Identifies the KeyDown routed event.
Public field Static KeyUpEvent Identifies the KeyUp routed event.
Public field Static LostFocusEvent Identifies the LostFocus routed event.
Public field Static LostKeyboardFocusEvent Identifies the LostKeyboardFocus routed event.
Public field Static LostMouseCaptureEvent Identifies the LostMouseCapture routed event.
Public field Static LostStylusCaptureEvent Identifies the LostStylusCapture routed event.
Public field Static MouseDownEvent Identifies the MouseDown routed event.
Public field Static MouseEnterEvent Identifies the MouseEnter routed event.
Public field Static MouseLeaveEvent Identifies the MouseLeave routed event.
Public field Static MouseLeftButtonDownEvent Identifies the MouseLeftButtonDown routed event.
Public field Static MouseLeftButtonUpEvent Identifies the MouseLeftButtonUp routed event.
Public field Static MouseMoveEvent Identifies the MouseMove routed event.
Public field Static MouseRightButtonDownEvent Identifies the MouseRightButtonDown routed event.
Public field Static MouseRightButtonUpEvent Identifies the MouseRightButtonUp routed event.
Public field Static MouseUpEvent Identifies the MouseUp routed event.
Public field Static MouseWheelEvent Identifies the MouseWheel routed event.
Public field Static OpacityMaskProperty Identifies the OpacityMask dependency property.
Public field Static OpacityProperty Identifies the Opacity dependency property.
Public field Static PreviewDragEnterEvent Identifies the PreviewDragEnter routed event.
Public field Static PreviewDragLeaveEvent Identifies the PreviewDragLeave routed event.
Public field Static PreviewDragOverEvent Identifies the PreviewDragOver routed event.
Public field Static PreviewDropEvent Identifies the PreviewDrop routed event.
Public field Static PreviewGiveFeedbackEvent Identifies the PreviewGiveFeedback routed event.
Public field Static PreviewGotKeyboardFocusEvent Identifies the PreviewGotKeyboardFocus routed event.
Public field Static PreviewKeyDownEvent Identifies the PreviewKeyDown routed event.
Public field Static PreviewKeyUpEvent Identifies the PreviewKeyUp routed event.
Public field Static PreviewLostKeyboardFocusEvent Identifies the PreviewLostKeyboardFocus routed event.
Public field Static PreviewMouseDownEvent Identifies the PreviewMouseDown routed event.
Public field Static PreviewMouseLeftButtonDownEvent Identifies the PreviewMouseLeftButtonDown routed event.
Public field Static PreviewMouseLeftButtonUpEvent Identifies the PreviewMouseLeftButtonUp routed event.
Public field Static PreviewMouseMoveEvent Identifies the PreviewMouseMove routed event.
Public field Static PreviewMouseRightButtonDownEvent Identifies the PreviewMouseRightButtonDown routed event.
Public field Static PreviewMouseRightButtonUpEvent Identifies the PreviewMouseRightButtonUp routed event.
Public field Static PreviewMouseUpEvent Identifies the PreviewMouseUp routed event.
Public field Static PreviewMouseWheelEvent Identifies the PreviewMouseWheel routed event.
Public field Static PreviewQueryContinueDragEvent Identifies the PreviewQueryContinueDrag routed event.
Public field Static PreviewStylusButtonDownEvent Identifies the PreviewStylusButtonDown routed event.
Public field Static PreviewStylusButtonUpEvent Identifies the PreviewStylusButtonUp routed event.
Public field Static PreviewStylusDownEvent Identifies the PreviewStylusDown routed event.
Public field Static PreviewStylusInAirMoveEvent Identifies the PreviewStylusInAirMove routed event.
Public field Static PreviewStylusInRangeEvent Identifies the PreviewStylusInRange routed event.
Public field Static PreviewStylusMoveEvent Identifies the PreviewStylusMove routed event.
Public field Static PreviewStylusOutOfRangeEvent Identifies the PreviewStylusOutOfRange routed event.
Public field Static PreviewStylusSystemGestureEvent Identifies the PreviewStylusSystemGesture routed event.
Public field Static PreviewStylusUpEvent Identifies the PreviewStylusUp routed event.
Public field Static PreviewTextInputEvent Identifies the PreviewTextInput routed event.
Public field Static QueryContinueDragEvent Identifies the QueryContinueDrag routed event.
Public field Static QueryCursorEvent Identifies the QueryCursor routed event.
Public field Static RenderTransformOriginProperty Identifies the RenderTransformOrigin dependency property.
Public field Static RenderTransformProperty Identifies the RenderTransform dependency property.
Public field Static SnapsToDevicePixelsProperty Identifies the SnapsToDevicePixels dependency property.
Public field Static StylusButtonDownEvent Identifies the StylusButtonDown routed event.
Public field Static StylusButtonUpEvent Identifies the StylusButtonUp routed event.
Public field Static StylusDownEvent Identifies the StylusDown routed event.
Public field Static StylusEnterEvent Identifies the StylusEnter routed event.
Public field Static StylusInAirMoveEvent Identifies the StylusInAirMove routed event.
Public field Static StylusInRangeEvent Identifies the StylusInRange routed event.
Public field Static StylusLeaveEvent Identifies the StylusLeave routed event.
Public field Static StylusMoveEvent Identifies the StylusMove routed event.
Public field Static StylusOutOfRangeEvent Identifies the StylusOutOfRange routed event.
Public field Static StylusSystemGestureEvent Identifies the StylusSystemGesture routed event.
Public field Static StylusUpEvent Identifies the StylusUp routed event.
Public field Static TextInputEvent Identifies the TextInput routed event.
Public field Static VisibilityProperty Identifies the Visibility dependency property.
Top
(see also Protected Properties )
  Name Description
Public property AllowDrop Gets or sets a value indicating whether this element can be used as the target of a drag-and-drop operation. This is a dependency property.
Public property BitmapEffect Gets or sets a bitmap effect that applies directly to the rendered content for this element. This is a dependency property.
Public property BitmapEffectInput Gets or sets an input source for the bitmap effect that applies directly to the rendered content for this element. This is a dependency property.
Public property Clip Gets or sets the geometry used to define the outline of the contents of an element. This is a dependency property.
Public property ClipToBounds Gets or sets a value indicating whether to clip the content of this element (or content coming from the child elements of this element) to fit into the size of the containing element. This is a dependency property.
Public property CommandBindings Gets a collection of CommandBinding objects associated with this element.
Public property DependencyObjectType  Gets the DependencyObjectType that wraps the CLR type of this instance. (inherited from DependencyObject)
Public property DesiredSize Gets the size that this element computed during the measure pass of the layout process.
Public property Dispatcher  Gets the Dispatcher this DispatcherObject is associated with. (inherited from DispatcherObject)
Public property Focusable Gets or sets a value that indicates whether the element can receive focus. This is a dependency property.
Public property HasAnimatedProperties Gets a value indicating whether this element has any animated properties.
Public property InputBindings Gets the collection of input bindings associated with this element.
Public property IsArrangeValid Gets a value indicating whether the computed size and position of child elements in this element's layout are valid.
Public property IsEnabled Gets or sets a value indicating whether this element is enabled in the user interface (UI). This is a dependency property.
Public property IsFocused Gets a value that determines whether this element has logical focus. This is a dependency property.
Public property IsHitTestVisible Gets or sets a value that declares whether this element can possibly be returned as a hit test result from some portion of its rendered content. This is a dependency property.
Public property IsInputMethodEnabled Gets a value indicating whether an input method system, such as an Input Method Editor (IME), is enabled for processing the input to this element.
Public property IsKeyboardFocused Gets a value indicating whether this element has keyboard focus. This is a dependency property.
Public property IsKeyboardFocusWithin Gets a value indicating whether keyboard focus is anywhere within the element or its visual tree child elements. This is a dependency property.
Public property IsMeasureValid Gets a value indicating whether the current size returned by layout measure is valid.
Public property IsMouseCaptured Gets a value indicating whether the mouse is captured to this element. This is a dependency property.
Public property IsMouseCaptureWithin Gets a value that determines whether mouse capture is held by this element or by child elements in its visual tree. This is a dependency property.
Public property IsMouseDirectlyOver Gets a value that indicates whether the position of the mouse pointer corresponds to hit test results, which take element compositing into account. This is a dependency property.
Public property IsMouseOver Gets a value indicating whether the mouse pointer is located over this element (including child elements in the visual tree). This is a dependency property.
Public property IsSealed  Gets a value that declares whether this instance is currently read-only.(inherited from DependencyObject)
Public property IsStylusCaptured Gets a value indicating whether the stylus is captured by this element. This is a dependency property.
Public property IsStylusCaptureWithin Gets a value that determines whether stylus capture is held by this element, or an element within the element bounds and its visual tree. This is a dependency property.
Public property IsStylusDirectlyOver Gets a value that indicates whether the stylus position corresponds to hit test results, which take element compositing into account. This is a dependency property.
Public property IsStylusOver Gets a value indicating whether the stylus cursor is located over this element (including visual child elements). This is a dependency property.
Public property IsVisible Gets a value indicating whether this element is visible in the user interface (UI). This is a dependency property.
Public property Opacity Gets or sets the opacity factor applied to the entire UIElement when it is rendered in the user interface (UI). This is a dependency property.
Public property OpacityMask Gets or sets an opacity mask, as a Brush implementation that is applied to any alpha-channel masking for the rendered content of this element. This is a dependency property.
Public property PersistId Gets a value that uniquely identifies this element.
Public property RenderSize Gets (or sets, but see Remarks) the final render size of this element.
Public property RenderTransform Gets or sets transform information that affects the rendering position of this element. This is a dependency property.
Public property RenderTransformOrigin Gets or sets the center point of any possible render transform declared by RenderTransform, relative to the bounds of the element. This is a dependency property.
Public property SnapsToDevicePixels Gets or sets a value that determines whether rendering for this element should use device-specific pixel settings during rendering. This is a dependency property.
Public property Visibility Gets or sets the user interface (UI) visibility of this element. This is a dependency property.
Top
  Name Description
Protected property IsEnabledCore Gets a value that becomes the return value of IsEnabled in derived classes.
Protected property StylusPlugIns Gets a collection of all stylus plug-in (customization) objects associated with this element.
Protected property VisualBitmapEffect  Gets or sets the BitmapEffect value for the Visual.(inherited from Visual)
Protected property VisualBitmapEffectInput  Gets or sets the BitmapEffectInput value for the Visual.(inherited from Visual)
Protected property VisualBitmapScalingMode  Gets or sets the BitmapScalingMode for the Visual.(inherited from Visual)
Protected property VisualChildrenCount  Gets the number of child elements for the Visual.(inherited from Visual)
Protected property VisualClip  Gets or sets the clip region of the Visual as a Geometry value.(inherited from Visual)
Protected property VisualEdgeMode  Gets or sets the edge mode of the Visual as an EdgeMode value.(inherited from Visual)
Protected property VisualOffset  Gets or sets the offset value of the visual object.(inherited from Visual)
Protected property VisualOpacity  Gets or sets the opacity of the Visual.(inherited from Visual)
Protected property VisualOpacityMask  Gets or sets the Brush value that represents the opacity mask of the Visual.(inherited from Visual)
Protected property VisualParent  Gets the parent of the visual object.(inherited from Visual)
Protected property VisualTransform  Gets or sets the Transform value for the Visual.(inherited from Visual)
Protected property VisualXSnappingGuidelines  Gets or sets the x-coordinate (vertical) guideline collection.(inherited from Visual)
Protected property VisualYSnappingGuidelines  Gets or sets the y-coordinate (horizontal) guideline collection.(inherited from Visual)
Top
(see also Protected Methods )
  Name Description
Public method AddHandler Overloaded. Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element.
Public method AddToEventRoute Adds handlers to the specified EventRoute for the current UIElement event handler collection.
Public method ApplyAnimationClock Overloaded. Applies an animation to a specified dependency property on this element.
Public method Arrange Positions child elements and determines a size for a UIElement. Parent elements call this method from their ArrangeCore implementation (or a WPF framework-level equivalent) to form a recursive layout update. This method constitutes the second pass of a layout update.
Public method BeginAnimation Overloaded. Starts an animation for a specified animated property on this element.
Public method CaptureMouse Attempts to force capture of the mouse to this element.
Public method CaptureStylus Attempts to force capture of the stylus to this element.
Public method CheckAccess  Determines whether the calling thread has access to this DispatcherObject. (inherited from DispatcherObject)
Public method ClearValue  Overloaded. Clears the local value of a property. (inherited from DependencyObject)
Public method CoerceValue  Coerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the property on this type. (inherited from DependencyObject)
Public method Equals  Overloaded. Determines whether a provided DependencyObject is equivalent to the current DependencyObject. (inherited from DependencyObject)
Public method FindCommonVisualAncestor  Finds the common ancestor of two visuals objects. (inherited from Visual)
Public method Focus Attempts to focus the keyboard on this element.
Public method GetAnimationBaseValue Returns the base property value for the specified property on this element, disregarding any possible animated value from a running or stopped animation.
Public method GetHashCode  Gets a hash code for this DependencyObject. (inherited from DependencyObject)
Public method GetLocalValueEnumerator  Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject. (inherited from DependencyObject)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method GetValue  Returns the current effective value of a dependency property on this instance of a DependencyObject. (inherited from DependencyObject)
Public method InputHitTest Returns the input element within the current element that is at the specified coordinates, relative to the current element's origin.
Public method InvalidateArrange Invalidates the arrange state (layout) for the element. After the invalidation, the element will have its layout updated, which will occur asynchronously unless subsequently forced by UpdateLayout.
Public method InvalidateMeasure Invalidates the measurement state (layout) for the element.
Public method InvalidateProperty  Re-evaluates the effective value for the specified dependency property (inherited from DependencyObject)
Public method InvalidateVisual Invalidates the rendering of the element, and forces a complete new layout pass. OnRender is called after the layout cycle is completed.
Public method IsAncestorOf  Determines whether the visual object is an ancestor of the descendant visual object. (inherited from Visual)
Public method IsDescendantOf  Determines whether the visual object is a descendant of the ancestor visual object. (inherited from Visual)
Public method Measure Updates the DesiredSize of a UIElement. Parent elements call this method from their own MeasureCore implementations to form a recursive layout update. Calling this method constitutes the first pass of a layout update in the layout system.
Public method MoveFocus 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.
Public method PointFromScreen  Converts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual. (inherited from Visual)
Public method PointToScreen  Converts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates. (inherited from Visual)
Public method PredictFocus 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.
Public method RaiseEvent 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).
Public method ReadLocalValue  Returns the local value of a dependency property, if it exists. (inherited from DependencyObject)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ReleaseMouseCapture Releases the mouse capture, if this element held the capture.
Public method ReleaseStylusCapture Releases the stylus device capture, if this element held the capture.
Public method RemoveHandler Removes the specified routed event handler from this element.
Public method SetValue  Overloaded. Sets the local value of a dependency property. (inherited from DependencyObject)
Public method ShouldSerializeCommandBindings Returns whether serialization processes should serialize the contents of the CommandBindings property on instances of this class.
Public method ShouldSerializeInputBindings Returns whether serialization processes should serialize the contents of the InputBindings property on instances of this class.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Public method TransformToAncestor  Returns a transform that can be used to transform coordinates from the Visual to the specified ancestor of the visual object. (inherited from Visual)
Public method TransformToDescendant  Returns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant. (inherited from Visual)
Public method TransformToVisual  Returns a transform that can be used to transform coordinates from the Visual to the specified visual object. (inherited from Visual)
Public method TranslatePoint Translates a point relative to this element to coordinates that are relative to the specified element.
Public method UpdateLayout Ensures that all visual child elements of this element are properly updated for layout.
Public method VerifyAccess  Enforces that the calling thread has access to this DispatcherObject. (inherited from DispatcherObject)
Top
  Name Description
Protected method AddVisualChild  Sets up the parent-child relationship between two visuals. (inherited from Visual)
Protected method ArrangeCore Defines the template for WPF core-level arrange layout definition.
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method GetLayoutClip Returns an alternative clipping geometry that represents the region that would be clipped if ClipToBounds were set to true.
Protected method GetUIParentCore When overridden in a derived class, returns an alternative user interface (UI) parent for this element if no visual parent exists.
Protected method GetVisualChild  Returns the specified Visual in the parent VisualCollection. (inherited from Visual)
Protected method HitTestCore Overloaded. Overridden. Implements HitTestCore to supply base element hit testing behavior.
Protected method MeasureCore When overridden in a derived class, provides measurement logic for sizing this element properly, with consideration of the size of any child element content.
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Protected method OnAccessKey Provides class handling for when an access key that is meaningful for this element is invoked.
Protected method OnChildDesiredSizeChanged Supports layout behavior when a child element is resized.
Protected method OnCreateAutomationPeer Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
Protected method OnDragEnter Invoked when an unhandled DragDrop.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.
Protected method OnDragLeave Invoked when an unhandled DragDrop.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.
Protected method OnDragOver Invoked when an unhandled DragDrop.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.
Protected method OnDrop Invoked when an unhandled DragDrop.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.
Protected method OnGiveFeedback Invoked when an unhandled DragDrop.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.
Protected method OnGotFocus Raises the GotFocus routed event by using the event data provided.
Protected method OnGotKeyboardFocus Invoked when an unhandled Keyboard.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.
Protected method OnGotMouseCapture Invoked when an unhandled Mouse.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.
Protected method OnGotStylusCapture Invoked when an unhandled Stylus.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.
Protected method OnIsKeyboardFocusedChanged Invoked when an unhandled IsKeyboardFocusedChanged event is raised on this element. Implement this method to add class handling for this event.
Protected method OnIsKeyboardFocusWithinChanged Invoked just before the IsKeyboardFocusWithinChanged event is raised by this element. Implement this method to add class handling for this event.
Protected method OnIsMouseCapturedChanged Invoked when an unhandled IsMouseCapturedChanged event is raised on this element. Implement this method to add class handling for this event.
Protected method OnIsMouseCaptureWithinChanged Invoked when an unhandled IsMouseCaptureWithinChanged event is raised on this element. Implement this method to add class handling for this event.
Protected method OnIsMouseDirectlyOverChanged Invoked when an unhandled IsMouseDirectlyOverChanged event is raised on this element. Implement this method to add class handling for this event.
Protected method OnIsStylusCapturedChanged Invoked when an unhandled IsStylusCapturedChanged event is raised on this element. Implement this method to add class handling for this event.
Protected method OnIsStylusCaptureWithinChanged Invoked when an unhandled IsStylusCaptureWithinChanged event is raised on this element. Implement this method to add class handling for this event.
Protected method OnIsStylusDirectlyOverChanged Invoked when an unhandled IsStylusDirectlyOverChanged event is raised on this element. Implement this method to add class handling for this event.
Protected method OnKeyDown Invoked when an unhandled Keyboard.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.
Protected method OnKeyUp Invoked when an unhandled Keyboard.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.
Protected method OnLostFocus Raises the LostFocus routed event by using the event data that is provided.
Protected method OnLostKeyboardFocus Invoked when an unhandled Keyboard.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.
Protected method OnLostMouseCapture Invoked when an unhandled Mouse.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.
Protected method OnLostStylusCapture Invoked when an unhandled Stylus.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.
Protected method OnMouseDown Invoked when an unhandled Mouse.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.
Protected method OnMouseEnter Invoked when an unhandled Mouse.MouseEnter attached event is raised on this element. Implement this method to add class handling for this event.
Protected method OnMouseLeave Invoked when an unhandled Mouse.MouseLeave attached event is raised on this element. Implement this method to add class handling for this event.
Protected method OnMouseLeftButtonDown Invoked when an unhandled MouseLeftButtonDown routed event is raised on this element. Implement this method to add class handling for this event.
Protected method OnMouseLeftButtonUp 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.
Protected method OnMouseMove Invoked when an unhandled Mouse.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.
Protected method OnMouseRightButtonDown 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.
Protected method OnMouseRightButtonUp 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.
Protected method OnMouseUp Invoked when an unhandled Mouse.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.
Protected method OnMouseWheel Invoked when an unhandled Mouse.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.
Protected method OnPreviewDragEnter Invoked when an unhandled DragDrop.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.
Protected method OnPreviewDragLeave Invoked when an unhandled DragDrop.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.
Protected method OnPreviewDragOver Invoked when an unhandled DragDrop.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.
Protected method OnPreviewDrop Invoked when an unhandled DragDrop.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.
Protected method OnPreviewGiveFeedback Invoked when an unhandled DragDrop.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.
Protected method OnPreviewGotKeyboardFocus Invoked when an unhandled Keyboard.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.
Protected method OnPreviewKeyDown Invoked when an unhandled Keyboard.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.
Protected method OnPreviewKeyUp Invoked when an unhandled Keyboard.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.
Protected method OnPreviewLostKeyboardFocus Invoked when an unhandled Keyboard.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.
Protected method OnPreviewMouseDown Invoked when an unhandled Mouse.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.
Protected method OnPreviewMouseLeftButtonDown 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.
Protected method OnPreviewMouseLeftButtonUp 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.
Protected method OnPreviewMouseMove Invoked when an unhandled Mouse.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.
Protected method OnPreviewMouseRightButtonDown 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.
Protected method OnPreviewMouseRightButtonUp 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.
Protected method OnPreviewMouseUp Invoked when an unhandled Mouse.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.
Protected method OnPreviewMouseWheel Invoked when an unhandled Mouse.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.
Protected method OnPreviewQueryContinueDrag Invoked when an unhandled DragDrop.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.
Protected method OnPreviewStylusButtonDown Invoked when an unhandled Stylus.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.
Protected method OnPreviewStylusButtonUp Invoked when an unhandled Stylus.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.
Protected method OnPreviewStylusDown Invoked when an unhandled Stylus.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.
Protected method OnPreviewStylusInAirMove Invoked when an unhandled Stylus.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.
Protected method OnPreviewStylusInRange Invoked when an unhandled Stylus.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.
Protected method OnPreviewStylusMove Invoked when an unhandled Stylus.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.
Protected method OnPreviewStylusOutOfRange Invoked when an unhandled Stylus.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.
Protected method OnPreviewStylusSystemGesture Invoked when an unhandled Stylus.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.
Protected method OnPreviewStylusUp Invoked when an unhandled Stylus.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.
Protected method OnPreviewTextInput Invoked when an unhandled TextCompositionManager.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.
Protected method OnPropertyChanged  Invoked whenever the effective value of any dependency property on this DependencyObject has been updated. The specific dependency property that changed is reported in the event data. (inherited from DependencyObject)
Protected method OnQueryContinueDrag Invoked when an unhandled DragDrop.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.
Protected method OnQueryCursor Invoked when an unhandled Mouse.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.
Protected method OnRender When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.
Protected method OnRenderSizeChanged When overridden in a derived class, participates in rendering operations that are directed by the layout system. This method is invoked after layout update, and before rendering, if the element's RenderSize has changed as a result of layout update.
Protected method OnStylusButtonDown Invoked when an unhandled Stylus.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.
Protected method OnStylusButtonUp Invoked when an unhandled Stylus.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.
Protected method OnStylusDown Invoked when an unhandled Stylus.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.
Protected method OnStylusEnter Invoked when an unhandled Stylus.StylusEnter attached event is raised by this element. Implement this method to add class handling for this event.
Protected method OnStylusInAirMove Invoked when an unhandled Stylus.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.
Protected method OnStylusInRange Invoked when an unhandled Stylus.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.
Protected method OnStylusLeave Invoked when an unhandled Stylus.StylusLeave attached event is raised by this element. Implement this method to add class handling for this event.
Protected method OnStylusMove Invoked when an unhandled Stylus.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.
Protected method OnStylusOutOfRange Invoked when an unhandled Stylus.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.
Protected method OnStylusSystemGesture Invoked when an unhandled Stylus.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.
Protected method OnStylusUp Invoked when an unhandled Stylus.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.
Protected method OnTextInput Invoked when an unhandled TextCompositionManager.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.
Protected method OnVisualChildrenChanged  Called when the VisualCollection of the visual object is modified. (inherited from Visual)
Protected method OnVisualParentChanged Overridden. Invoked when the parent element of this UIElement reports a change to its underlying visual parent.
Protected method RemoveVisualChild  Removes the parent-child relationship between two visuals. (inherited from Visual)
Protected method ShouldSerializeProperty  Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property. (inherited from DependencyObject)
Top
  Name Description
Public event DragEnter Occurs when the input system reports an underlying drag event with this element as the drag target.
Public event DragLeave Occurs when the input system reports an underlying drag event with this element as the drag origin.
Public event DragOver Occurs when the input system reports an underlying drag event with this element as the potential drop target.
Public event Drop Occurs when the input system reports an underlying drop event with this element as the drop target.
Public event FocusableChanged Occurs when the value of the Focusable property changes.
Public event GiveFeedback Occurs when the input system reports an underlying drag-and-drop event that involves this element.
Public event GotFocus Occurs when this element gets logical focus.
Public event GotKeyboardFocus Occurs when the keyboard is focused on this element.
Public event GotMouseCapture Occurs when this element captures the mouse.
Public event GotStylusCapture Occurs when this element captures the stylus.
Public event IsEnabledChanged Occurs when the value of the IsEnabled property on this element changes.
Public event IsHitTestVisibleChanged Occurs when the value of the IsHitTestVisible dependency property changes on this element.
Public event IsKeyboardFocusedChanged Occurs when the value of the IsKeyboardFocused property changes on this element.
Public event IsKeyboardFocusWithinChanged Occurs when the value of the IsKeyboardFocusWithinChanged property changes on this element.
Public event IsMouseCapturedChanged Occurs when the value of the IsMouseCaptured property changes on this element.
Public event IsMouseCaptureWithinChanged Occurs when the value of the IsMouseCaptureWithinProperty changes on this element.
Public event IsMouseDirectlyOverChanged Occurs when the value of the IsMouseDirectlyOver property changes on this element.
Public event IsStylusCapturedChanged Occurs when the value of the IsStylusCaptured property changes on this element.
Public event IsStylusCaptureWithinChanged Occurs when the value of the IsStylusCaptureWithin property changes on this element.
Public event IsStylusDirectlyOverChanged Occurs when the value of the IsStylusDirectlyOver property changes on this element.
Public event IsVisibleChanged Occurs when the value of the IsVisible property changes on this element.
Public event KeyDown Occurs when a key is pressed while the keyboard is focused on this element.
Public event KeyUp Occurs when a key is released while the keyboard is focused on this element.
Public event LayoutUpdated Occurs when the layout of the various visual elements associated with the current Dispatcher changes.
Public event LostFocus Occurs when this element loses logical focus.
Public event LostKeyboardFocus Occurs when the keyboard is no longer focused on this element,.
Public event LostMouseCapture Occurs when this element loses mouse capture.
Public event LostStylusCapture Occurs when this element loses stylus capture.
Public event MouseDown Occurs when any mouse button is pressed while the pointer is over this element.
Public event MouseEnter Occurs when the mouse pointer enters the bounds of this element.
Public event MouseLeave Occurs when the mouse pointer leaves the bounds of this element.
Public event MouseLeftButtonDown Occurs when the left mouse button is pressed while the mouse pointer is over this element.
Public event MouseLeftButtonUp Occurs when the left mouse button is released while the mouse pointer is over this element.
Public event MouseMove Occurs when the mouse pointer moves while over this element.
Public event MouseRightButtonDown Occurs when the right mouse button is pressed while the mouse pointer is over this element.
Public event MouseRightButtonUp Occurs when the right mouse button is released while the mouse pointer is over this element.
Public event MouseUp Occurs when any mouse button is released over this element.
Public event MouseWheel Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.
Public event PreviewDragEnter Occurs when the input system reports an underlying drag event with this element as the drag target.
Public event PreviewDragLeave Occurs when the input system reports an underlying drag event with this element as the drag origin.
Public event PreviewDragOver Occurs when the input system reports an underlying drag event with this element as the potential drop target.
Public event PreviewDrop Occurs when the input system reports an underlying drop event with this element as the drop target.
Public event PreviewGiveFeedback Occurs when a drag-and-drop operation is started.
Public event PreviewGotKeyboardFocus Occurs when the keyboard is focused on this element.
Public event PreviewKeyDown Occurs when a key is pressed while the keyboard is focused on this element.
Public event PreviewKeyUp Occurs when a key is released while the keyboard is focused on this element.
Public event PreviewLostKeyboardFocus Occurs when the keyboard is no longer focused on this element.
Public event PreviewMouseDown Occurs when any mouse button is pressed while the pointer is over this element.
Public event PreviewMouseLeftButtonDown Occurs when the left mouse button is pressed while the mouse pointer is over this element.
Public event PreviewMouseLeftButtonUp Occurs when the left mouse button is released while the mouse pointer is over this element.
Public event PreviewMouseMove Occurs when the mouse pointer moves while the mouse pointer is over this element.
Public event PreviewMouseRightButtonDown Occurs when the right mouse button is pressed while the mouse pointer is over this element.
Public event PreviewMouseRightButtonUp Occurs when the right mouse button is released while the mouse pointer is over this element.
Public event PreviewMouseUp Occurs when any mouse button is released while the mouse pointer is over this element.
Public event PreviewMouseWheel Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.
Public event PreviewQueryContinueDrag Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.
Public event PreviewStylusButtonDown Occurs when the stylus button is pressed while the pointer is over this element.
Public event PreviewStylusButtonUp Occurs when the stylus button is released while the pointer is over this element.
Public event PreviewStylusDown Occurs when the stylus touches the digitizer while it is over this element.
Public event PreviewStylusInAirMove Occurs when the stylus moves over an element without actually touching the digitizer.
Public event PreviewStylusInRange Occurs when the stylus is close enough to the digitizer to be detected, while over this element.
Public event 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.
Public event PreviewStylusOutOfRange Occurs when the stylus is too far from the digitizer to be detected.
Public event PreviewStylusSystemGesture Occurs when a user performs one of several stylus gestures.
Public event PreviewStylusUp Occurs when the user raises the stylus off the digitizer while the stylus is over this element.
Public event PreviewTextInput Occurs when this element gets text in a device-independent manner.
Public event QueryContinueDrag Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.
Public event 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.
Public event StylusButtonDown Occurs when the stylus button is pressed while the pointer is over this element.
Public event StylusButtonUp Occurs when the stylus button is released while the pointer is over this element.
Public event StylusDown Occurs when the stylus touches the digitizer while the stylus is over this element.
Public event StylusEnter Occurs when the stylus enters the bounds of this element.
Public event StylusInAirMove Occurs when the stylus moves over an element without actually touching the digitizer.
Public event StylusInRange Occurs when the stylus is close enough to the digitizer to be detected, while over this element.
Public event StylusLeave Occurs when the stylus leaves the bounds of the element.
Public event 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.
Public event StylusOutOfRange Occurs when the stylus is too far from the digitizer to be detected, while over this element.
Public event StylusSystemGesture Occurs when a user performs one of several stylus gestures.
Public event StylusUp Occurs when the user raises the stylus off the digitizer while it is over this element.
Public event TextInput Occurs when this element gets text in a device-independent manner.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.