UIElement UIElement UIElement UIElement Class

定义

UIElement 是 WPF 核心级实现的基类,这些实现是在 Windows Presentation Foundation (WPF) 元素和基本表示特性上生成的。UIElement is a base class for WPF core level implementations building on Windows Presentation Foundation (WPF) elements and basic presentation characteristics.

public ref class UIElement : System::Windows::Media::Visual, System::Windows::IInputElement, System::Windows::Media::Animation::IAnimatable
[System.Windows.Markup.UidProperty("Uid")]
public class UIElement : System.Windows.Media.Visual, System.Windows.IInputElement, System.Windows.Media.Animation.IAnimatable
type UIElement = class
    inherit Visual
    interface IAnimatable
    interface IInputElement
Public Class UIElement
Inherits Visual
Implements IAnimatable, IInputElement
继承
派生
属性
实现

注解

UIElement提供元素布局特征的起点, 还公开派生类可以重写的虚拟方法, 这可能会影响元素及其子元素的布局呈现行为。UIElement provides a starting point for element layout characteristics, and also exposes virtual methods that derived classes can override, which can influence the layout rendering behavior of the element and its child elements.

通常, UIElement类中还定义了元素的大部分输入和焦点行为。Much of the input and focusing behavior for elements in general is also defined in the UIElement class. 这包括键盘、鼠标和触笔输入的事件以及相关的状态属性。This includes the events for keyboard, mouse and stylus input, and related status properties. 其中的许多事件都是路由事件, 许多输入相关事件都具有冒泡路由版本以及事件的隧道版本。Many of these events are routed events, and many of the input-related events have both a bubbling routing version as well as a tunneling version of the event. 这些配对事件通常是控制作者最感兴趣的事件。These paired events are typically the events of greatest interest to control authors.

UIElement还包括APIAPIsWPFWPF事件模型相关的, 包括可以引发源自元素实例的指定路由事件的方法。UIElement also includes APIAPIs that relate to the WPFWPF event model, including methods that can raise specified routed events that are sourced from an element instance.

就体系结构而言, UIElement可以考虑大致等效于Win32Win32编程中的窗口句柄或编程中动态 HTML (DHTML)Dynamic HTML (DHTML)的元素。In terms of architecture, UIElement can be considered roughly equivalent to a window handle in Win32Win32 programming, or an Element in 动态 HTML (DHTML)Dynamic HTML (DHTML) programming. UIElement是 WPF 核心级别的基元素。UIElement is a base element at the WPF core level.

UIElement 具有UIElement由类专门定义的以下功能:A UIElement has the following capabilities that are specifically defined by the UIElement class:

  • 可以呈现为子元素 (UIElement派生自Visual高级图形类)Can render as a child element (UIElement derives from Visual, a high level graphics class)

  • 包含用于调整的UIElement可能的子元素的大小和位置的逻辑 (当由布局系统解释时)Contains logic that is used to size and position possible child elements of a UIElement (when interpreted by a layout system)

  • 可以响应用户输入 (包括通过其事件路由处理或命令路由来控制输入的发送位置)Can respond to user input (including control of where input is getting sent to via their handling of event routing, or routing of commands)

  • 可以引发通过逻辑元素树传送路由的路由事件Can raise routed events that travel a route through the logical element tree

  • 支持动画系统的某些方面Supports some aspects of the animation system

FrameworkElement是在上UIElement生成的 wpf 框架级别实现类, 并添加了与 WPF 框架级别的特定交互。FrameworkElement is the WPF framework-level implementation class that builds on UIElement, and adds specific interactions with the WPF framework level. FrameworkElement添加并定义以下功能:FrameworkElement adds and defines the following capabilities:

  • 其他框架特定的布局特征Additional framework-specific layout characteristics

  • 支持更丰富的元数据报告属性Support for richer metadata reporting on properties

  • 某些输入基类的特定于类的实现及其附加属性或附加事件Class-specific implementation of certain input base classes and their attached properties or attached events

  • 样式支持Style support

  • 更多动画支持Further animation support

另一个相关类ContentElement为。Another related class is ContentElement. 类实现了许多与相同的成员UIElement; 这两个类之间的区别与它们在整个内容模型中的预期位置相同。 ContentElementThe ContentElement class implements many of the same members as does UIElement; the difference between these two classes has to do with their intended place in the overall content model. UIElement派生类通常定义一个相对严格的内容模型, 这意味着对标记中的子元素可以是哪些元素有限制。A UIElement derived class typically defines a relatively rigid content model, meaning that there are restrictions on what elements may be child elements in markup. 可能存在在中使用UIElement限制较少的子内容的容量, 但该容量通常集中在指定的内容属性中。There might be capacity for taking less restrictive child content in a UIElement, but that capacity is typically centralized in designated content properties. ContentElement派生类通常不会对内容进行限制, 以支持流格式文档等方案。A ContentElement derived class is typically not as restrictive about content, to support scenarios such as flow-format documents.

重要

Visibility状态会影响该元素的所有输入处理。Visibility state affects all input handling by that element. 不可见的元素不参与命中测试, 也不会接收到输入事件, 即使鼠标位于元素显示的边界处。Elements that are not visible do not participate in hit testing and do not receive input events, even if the mouse is over the bounds where the element would be if were visible.

构造函数

UIElement() UIElement() UIElement() UIElement()

初始化 UIElement 类的新实例。Initializes a new instance of the UIElement class.

字段

AllowDropProperty AllowDropProperty AllowDropProperty AllowDropProperty

标识 AllowDrop 依赖项属性。Identifies the AllowDrop dependency property.

AreAnyTouchesCapturedProperty AreAnyTouchesCapturedProperty AreAnyTouchesCapturedProperty AreAnyTouchesCapturedProperty

标识 AreAnyTouchesCaptured 依赖项属性。Identifies the AreAnyTouchesCaptured dependency property.

AreAnyTouchesCapturedWithinProperty AreAnyTouchesCapturedWithinProperty AreAnyTouchesCapturedWithinProperty AreAnyTouchesCapturedWithinProperty

标识 AreAnyTouchesCapturedWithin 依赖项属性。Identifies the AreAnyTouchesCapturedWithin dependency property.

AreAnyTouchesDirectlyOverProperty AreAnyTouchesDirectlyOverProperty AreAnyTouchesDirectlyOverProperty AreAnyTouchesDirectlyOverProperty

标识 AreAnyTouchesDirectlyOver 依赖项属性。Identifies the AreAnyTouchesDirectlyOver dependency property.

AreAnyTouchesOverProperty AreAnyTouchesOverProperty AreAnyTouchesOverProperty AreAnyTouchesOverProperty

标识 AreAnyTouchesOver 依赖项属性。Identifies the AreAnyTouchesOver dependency property.

BitmapEffectInputProperty BitmapEffectInputProperty BitmapEffectInputProperty BitmapEffectInputProperty

标识 BitmapEffectInput 依赖项属性。Identifies the BitmapEffectInput dependency property.

BitmapEffectProperty BitmapEffectProperty BitmapEffectProperty BitmapEffectProperty

标识 BitmapEffect 依赖项属性。Identifies the BitmapEffect dependency property.

CacheModeProperty CacheModeProperty CacheModeProperty CacheModeProperty

标识 CacheMode 依赖项属性。Identifies the CacheMode dependency property.

ClipProperty ClipProperty ClipProperty ClipProperty

标识 Clip 依赖项属性。Identifies the Clip dependency property.

ClipToBoundsProperty ClipToBoundsProperty ClipToBoundsProperty ClipToBoundsProperty

标识 ClipToBounds 依赖项属性。Identifies the ClipToBounds dependency property.

DragEnterEvent DragEnterEvent DragEnterEvent DragEnterEvent

标识 DragEnter 路由事件。Identifies the DragEnter routed event.

DragLeaveEvent DragLeaveEvent DragLeaveEvent DragLeaveEvent

标识 DragLeave 路由事件。Identifies the DragLeave routed event.

DragOverEvent DragOverEvent DragOverEvent DragOverEvent

标识 DragOver 路由事件。Identifies the DragOver routed event.

DropEvent DropEvent DropEvent DropEvent

标识 Drop 路由事件。Identifies the Drop routed event.

EffectProperty EffectProperty EffectProperty EffectProperty

标识 Effect 依赖项属性。Identifies the Effect dependency property.

FocusableProperty FocusableProperty FocusableProperty FocusableProperty

标识 Focusable 依赖项属性。Identifies the Focusable dependency property.

GiveFeedbackEvent GiveFeedbackEvent GiveFeedbackEvent GiveFeedbackEvent

标识 GiveFeedback 路由事件。Identifies the GiveFeedback routed event.

GotFocusEvent GotFocusEvent GotFocusEvent GotFocusEvent

标识 GotFocus 路由事件。Identifies the GotFocus routed event.

GotKeyboardFocusEvent GotKeyboardFocusEvent GotKeyboardFocusEvent GotKeyboardFocusEvent

标识 GotKeyboardFocus 路由事件。Identifies the GotKeyboardFocus routed event.

GotMouseCaptureEvent GotMouseCaptureEvent GotMouseCaptureEvent GotMouseCaptureEvent

标识 GotMouseCapture 路由事件。Identifies the GotMouseCapture routed event.

GotStylusCaptureEvent GotStylusCaptureEvent GotStylusCaptureEvent GotStylusCaptureEvent

标识 GotStylusCapture 路由事件。Identifies the GotStylusCapture routed event.

GotTouchCaptureEvent GotTouchCaptureEvent GotTouchCaptureEvent GotTouchCaptureEvent

标识 GotTouchCapture 路由事件。Identifies the GotTouchCapture routed event.

IsEnabledProperty IsEnabledProperty IsEnabledProperty IsEnabledProperty

标识 IsEnabled 依赖项属性。Identifies the IsEnabled dependency property.

IsFocusedProperty IsFocusedProperty IsFocusedProperty IsFocusedProperty

标识 IsFocused 依赖项属性。Identifies the IsFocused dependency property.

IsHitTestVisibleProperty IsHitTestVisibleProperty IsHitTestVisibleProperty IsHitTestVisibleProperty

标识 IsHitTestVisible 依赖项属性。Identifies the IsHitTestVisible dependency property.

IsKeyboardFocusedProperty IsKeyboardFocusedProperty IsKeyboardFocusedProperty IsKeyboardFocusedProperty

标识 IsKeyboardFocused 依赖项属性。Identifies the IsKeyboardFocused dependency property.

IsKeyboardFocusWithinProperty IsKeyboardFocusWithinProperty IsKeyboardFocusWithinProperty IsKeyboardFocusWithinProperty

标识 IsKeyboardFocusWithin 依赖项属性。Identifies the IsKeyboardFocusWithin dependency property.

IsManipulationEnabledProperty IsManipulationEnabledProperty IsManipulationEnabledProperty IsManipulationEnabledProperty

标识 IsManipulationEnabled 依赖项属性。Identifies the IsManipulationEnabled dependency property.

IsMouseCapturedProperty IsMouseCapturedProperty IsMouseCapturedProperty IsMouseCapturedProperty

标识 IsMouseCaptured 依赖项属性。Identifies the IsMouseCaptured dependency property.

IsMouseCaptureWithinProperty IsMouseCaptureWithinProperty IsMouseCaptureWithinProperty IsMouseCaptureWithinProperty

标识 IsMouseCaptureWithin 依赖项属性。Identifies the IsMouseCaptureWithin dependency property.

IsMouseDirectlyOverProperty IsMouseDirectlyOverProperty IsMouseDirectlyOverProperty IsMouseDirectlyOverProperty

标识 IsMouseDirectlyOver 依赖项属性。Identifies the IsMouseDirectlyOver dependency property.

IsMouseOverProperty IsMouseOverProperty IsMouseOverProperty IsMouseOverProperty

标识 IsMouseOver 依赖项属性。Identifies the IsMouseOver dependency property.

IsStylusCapturedProperty IsStylusCapturedProperty IsStylusCapturedProperty IsStylusCapturedProperty

标识 IsStylusCaptured 依赖项属性。Identifies the IsStylusCaptured dependency property.

IsStylusCaptureWithinProperty IsStylusCaptureWithinProperty IsStylusCaptureWithinProperty IsStylusCaptureWithinProperty

标识 IsStylusCaptureWithin 依赖项属性。Identifies the IsStylusCaptureWithin dependency property.

IsStylusDirectlyOverProperty IsStylusDirectlyOverProperty IsStylusDirectlyOverProperty IsStylusDirectlyOverProperty

标识 IsStylusDirectlyOver 依赖项属性。Identifies the IsStylusDirectlyOver dependency property.

IsStylusOverProperty IsStylusOverProperty IsStylusOverProperty IsStylusOverProperty

标识 IsStylusOver 依赖项属性。Identifies the IsStylusOver dependency property.

IsVisibleProperty IsVisibleProperty IsVisibleProperty IsVisibleProperty

标识 IsVisible 依赖项属性。Identifies the IsVisible dependency property.

KeyDownEvent KeyDownEvent KeyDownEvent KeyDownEvent

标识 KeyDown 路由事件。Identifies the KeyDown routed event.

KeyUpEvent KeyUpEvent KeyUpEvent KeyUpEvent

标识 KeyUp 路由事件。Identifies the KeyUp routed event.

LostFocusEvent LostFocusEvent LostFocusEvent LostFocusEvent

标识 LostFocus 路由事件。Identifies the LostFocus routed event.

LostKeyboardFocusEvent LostKeyboardFocusEvent LostKeyboardFocusEvent LostKeyboardFocusEvent

标识 LostKeyboardFocus 路由事件。Identifies the LostKeyboardFocus routed event.

LostMouseCaptureEvent LostMouseCaptureEvent LostMouseCaptureEvent LostMouseCaptureEvent

标识 LostMouseCapture 路由事件。Identifies the LostMouseCapture routed event.

LostStylusCaptureEvent LostStylusCaptureEvent LostStylusCaptureEvent LostStylusCaptureEvent

标识 LostStylusCapture 路由事件。Identifies the LostStylusCapture routed event.

LostTouchCaptureEvent LostTouchCaptureEvent LostTouchCaptureEvent LostTouchCaptureEvent

标识 LostTouchCapture 路由事件。Identifies the LostTouchCapture routed event.

ManipulationBoundaryFeedbackEvent ManipulationBoundaryFeedbackEvent ManipulationBoundaryFeedbackEvent ManipulationBoundaryFeedbackEvent

标识 ManipulationBoundaryFeedback 事件。Identifies the ManipulationBoundaryFeedback event.

ManipulationCompletedEvent ManipulationCompletedEvent ManipulationCompletedEvent ManipulationCompletedEvent

标识 ManipulationCompleted 路由事件。Identifies the ManipulationCompleted routed event.

ManipulationDeltaEvent ManipulationDeltaEvent ManipulationDeltaEvent ManipulationDeltaEvent

标识 ManipulationDelta 路由事件。Identifies the ManipulationDelta routed event.

ManipulationInertiaStartingEvent ManipulationInertiaStartingEvent ManipulationInertiaStartingEvent ManipulationInertiaStartingEvent

标识 ManipulationInertiaStarting 路由事件。Identifies the ManipulationInertiaStarting routed event.

ManipulationStartedEvent ManipulationStartedEvent ManipulationStartedEvent ManipulationStartedEvent

标识 ManipulationStarted 路由事件。Identifies the ManipulationStarted routed event.

ManipulationStartingEvent ManipulationStartingEvent ManipulationStartingEvent ManipulationStartingEvent

标识 ManipulationStarting 路由事件。Identifies the ManipulationStarting routed event.

MouseDownEvent MouseDownEvent MouseDownEvent MouseDownEvent

标识 MouseDown 路由事件。Identifies the MouseDown routed event.

MouseEnterEvent MouseEnterEvent MouseEnterEvent MouseEnterEvent

标识 MouseEnter 路由事件。Identifies the MouseEnter routed event.

MouseLeaveEvent MouseLeaveEvent MouseLeaveEvent MouseLeaveEvent

标识 MouseLeave 路由事件。Identifies the MouseLeave routed event.

MouseLeftButtonDownEvent MouseLeftButtonDownEvent MouseLeftButtonDownEvent MouseLeftButtonDownEvent

标识 MouseLeftButtonDown 路由事件。Identifies the MouseLeftButtonDown routed event.

MouseLeftButtonUpEvent MouseLeftButtonUpEvent MouseLeftButtonUpEvent MouseLeftButtonUpEvent

标识 MouseLeftButtonUp 路由事件。Identifies the MouseLeftButtonUp routed event.

MouseMoveEvent MouseMoveEvent MouseMoveEvent MouseMoveEvent

标识 MouseMove 路由事件。Identifies the MouseMove routed event.

MouseRightButtonDownEvent MouseRightButtonDownEvent MouseRightButtonDownEvent MouseRightButtonDownEvent

标识 MouseRightButtonDown 路由事件。Identifies the MouseRightButtonDown routed event.

MouseRightButtonUpEvent MouseRightButtonUpEvent MouseRightButtonUpEvent MouseRightButtonUpEvent

标识 MouseRightButtonUp 路由事件。Identifies the MouseRightButtonUp routed event.

MouseUpEvent MouseUpEvent MouseUpEvent MouseUpEvent

标识 MouseUp 路由事件。Identifies the MouseUp routed event.

MouseWheelEvent MouseWheelEvent MouseWheelEvent MouseWheelEvent

标识 MouseWheel 路由事件。Identifies the MouseWheel routed event.

OpacityMaskProperty OpacityMaskProperty OpacityMaskProperty OpacityMaskProperty

标识 OpacityMask 依赖项属性。Identifies the OpacityMask dependency property.

OpacityProperty OpacityProperty OpacityProperty OpacityProperty

标识 Opacity 依赖项属性。Identifies the Opacity dependency property.

PreviewDragEnterEvent PreviewDragEnterEvent PreviewDragEnterEvent PreviewDragEnterEvent

标识 PreviewDragEnter 路由事件。Identifies the PreviewDragEnter routed event.

PreviewDragLeaveEvent PreviewDragLeaveEvent PreviewDragLeaveEvent PreviewDragLeaveEvent

标识 PreviewDragLeave 路由事件。Identifies the PreviewDragLeave routed event.

PreviewDragOverEvent PreviewDragOverEvent PreviewDragOverEvent PreviewDragOverEvent

标识 PreviewDragOver 路由事件。Identifies the PreviewDragOver routed event.

PreviewDropEvent PreviewDropEvent PreviewDropEvent PreviewDropEvent

标识 PreviewDrop 路由事件。Identifies the PreviewDrop routed event.

PreviewGiveFeedbackEvent PreviewGiveFeedbackEvent PreviewGiveFeedbackEvent PreviewGiveFeedbackEvent

标识 PreviewGiveFeedback 路由事件。Identifies the PreviewGiveFeedback routed event.

PreviewGotKeyboardFocusEvent PreviewGotKeyboardFocusEvent PreviewGotKeyboardFocusEvent PreviewGotKeyboardFocusEvent

标识 PreviewGotKeyboardFocus 路由事件。Identifies the PreviewGotKeyboardFocus routed event.

PreviewKeyDownEvent PreviewKeyDownEvent PreviewKeyDownEvent PreviewKeyDownEvent

标识 PreviewKeyDown 路由事件。Identifies the PreviewKeyDown routed event.

PreviewKeyUpEvent PreviewKeyUpEvent PreviewKeyUpEvent PreviewKeyUpEvent

标识 PreviewKeyUp 路由事件。Identifies the PreviewKeyUp routed event.

PreviewLostKeyboardFocusEvent PreviewLostKeyboardFocusEvent PreviewLostKeyboardFocusEvent PreviewLostKeyboardFocusEvent

标识 PreviewLostKeyboardFocus 路由事件。Identifies the PreviewLostKeyboardFocus routed event.

PreviewMouseDownEvent PreviewMouseDownEvent PreviewMouseDownEvent PreviewMouseDownEvent

标识 PreviewMouseDown 路由事件。Identifies the PreviewMouseDown routed event.

PreviewMouseLeftButtonDownEvent PreviewMouseLeftButtonDownEvent PreviewMouseLeftButtonDownEvent PreviewMouseLeftButtonDownEvent

标识 PreviewMouseLeftButtonDown 路由事件。Identifies the PreviewMouseLeftButtonDown routed event.

PreviewMouseLeftButtonUpEvent PreviewMouseLeftButtonUpEvent PreviewMouseLeftButtonUpEvent PreviewMouseLeftButtonUpEvent

标识 PreviewMouseLeftButtonUp 路由事件。Identifies the PreviewMouseLeftButtonUp routed event.

PreviewMouseMoveEvent PreviewMouseMoveEvent PreviewMouseMoveEvent PreviewMouseMoveEvent

标识 PreviewMouseMove 路由事件。Identifies the PreviewMouseMove routed event.

PreviewMouseRightButtonDownEvent PreviewMouseRightButtonDownEvent PreviewMouseRightButtonDownEvent PreviewMouseRightButtonDownEvent

标识 PreviewMouseRightButtonDown 路由事件。Identifies the PreviewMouseRightButtonDown routed event.

PreviewMouseRightButtonUpEvent PreviewMouseRightButtonUpEvent PreviewMouseRightButtonUpEvent PreviewMouseRightButtonUpEvent

标识 PreviewMouseRightButtonUp 路由事件。Identifies the PreviewMouseRightButtonUp routed event.

PreviewMouseUpEvent PreviewMouseUpEvent PreviewMouseUpEvent PreviewMouseUpEvent

标识 PreviewMouseUp 路由事件。Identifies the PreviewMouseUp routed event.

PreviewMouseWheelEvent PreviewMouseWheelEvent PreviewMouseWheelEvent PreviewMouseWheelEvent

标识 PreviewMouseWheel 路由事件。Identifies the PreviewMouseWheel routed event.

PreviewQueryContinueDragEvent PreviewQueryContinueDragEvent PreviewQueryContinueDragEvent PreviewQueryContinueDragEvent

标识 PreviewQueryContinueDrag 路由事件。Identifies the PreviewQueryContinueDrag routed event.

PreviewStylusButtonDownEvent PreviewStylusButtonDownEvent PreviewStylusButtonDownEvent PreviewStylusButtonDownEvent

标识 PreviewStylusButtonDown 路由事件。Identifies the PreviewStylusButtonDown routed event.

PreviewStylusButtonUpEvent PreviewStylusButtonUpEvent PreviewStylusButtonUpEvent PreviewStylusButtonUpEvent

标识 PreviewStylusButtonUp 路由事件。Identifies the PreviewStylusButtonUp routed event.

PreviewStylusDownEvent PreviewStylusDownEvent PreviewStylusDownEvent PreviewStylusDownEvent

标识 PreviewStylusDown 路由事件。Identifies the PreviewStylusDown routed event.

PreviewStylusInAirMoveEvent PreviewStylusInAirMoveEvent PreviewStylusInAirMoveEvent PreviewStylusInAirMoveEvent

标识 PreviewStylusInAirMove 路由事件。Identifies the PreviewStylusInAirMove routed event.

PreviewStylusInRangeEvent PreviewStylusInRangeEvent PreviewStylusInRangeEvent PreviewStylusInRangeEvent

标识 PreviewStylusInRange 路由事件。Identifies the PreviewStylusInRange routed event.

PreviewStylusMoveEvent PreviewStylusMoveEvent PreviewStylusMoveEvent PreviewStylusMoveEvent

标识 PreviewStylusMove 路由事件。Identifies the PreviewStylusMove routed event.

PreviewStylusOutOfRangeEvent PreviewStylusOutOfRangeEvent PreviewStylusOutOfRangeEvent PreviewStylusOutOfRangeEvent

标识 PreviewStylusOutOfRange 路由事件。Identifies the PreviewStylusOutOfRange routed event.

PreviewStylusSystemGestureEvent PreviewStylusSystemGestureEvent PreviewStylusSystemGestureEvent PreviewStylusSystemGestureEvent

标识 PreviewStylusSystemGesture 路由事件。Identifies the PreviewStylusSystemGesture routed event.

PreviewStylusUpEvent PreviewStylusUpEvent PreviewStylusUpEvent PreviewStylusUpEvent

标识 PreviewStylusUp 路由事件。Identifies the PreviewStylusUp routed event.

PreviewTextInputEvent PreviewTextInputEvent PreviewTextInputEvent PreviewTextInputEvent

标识 PreviewTextInput 路由事件。Identifies the PreviewTextInput routed event.

PreviewTouchDownEvent PreviewTouchDownEvent PreviewTouchDownEvent PreviewTouchDownEvent

标识 PreviewTouchDown 路由事件。Identifies the PreviewTouchDown routed event.

PreviewTouchMoveEvent PreviewTouchMoveEvent PreviewTouchMoveEvent PreviewTouchMoveEvent

标识 PreviewTouchMove 路由事件。Identifies the PreviewTouchMove routed event.

PreviewTouchUpEvent PreviewTouchUpEvent PreviewTouchUpEvent PreviewTouchUpEvent

标识 PreviewTouchUp 路由事件。Identifies the PreviewTouchUp routed event.

QueryContinueDragEvent QueryContinueDragEvent QueryContinueDragEvent QueryContinueDragEvent

标识 QueryContinueDrag 路由事件。Identifies the QueryContinueDrag routed event.

QueryCursorEvent QueryCursorEvent QueryCursorEvent QueryCursorEvent

标识 QueryCursor 路由事件。Identifies the QueryCursor routed event.

RenderTransformOriginProperty RenderTransformOriginProperty RenderTransformOriginProperty RenderTransformOriginProperty

标识 RenderTransformOrigin 依赖项属性。Identifies the RenderTransformOrigin dependency property.

RenderTransformProperty RenderTransformProperty RenderTransformProperty RenderTransformProperty

标识 RenderTransform 依赖项属性。Identifies the RenderTransform dependency property.

SnapsToDevicePixelsProperty SnapsToDevicePixelsProperty SnapsToDevicePixelsProperty SnapsToDevicePixelsProperty

标识 SnapsToDevicePixels 依赖项属性。Identifies the SnapsToDevicePixels dependency property.

StylusButtonDownEvent StylusButtonDownEvent StylusButtonDownEvent StylusButtonDownEvent

标识 StylusButtonDown 路由事件。Identifies the StylusButtonDown routed event.

StylusButtonUpEvent StylusButtonUpEvent StylusButtonUpEvent StylusButtonUpEvent

标识 StylusButtonUp 路由事件。Identifies the StylusButtonUp routed event.

StylusDownEvent StylusDownEvent StylusDownEvent StylusDownEvent

标识 StylusDown 路由事件。Identifies the StylusDown routed event.

StylusEnterEvent StylusEnterEvent StylusEnterEvent StylusEnterEvent

标识 StylusEnter 路由事件。Identifies the StylusEnter routed event.

StylusInAirMoveEvent StylusInAirMoveEvent StylusInAirMoveEvent StylusInAirMoveEvent

标识 StylusInAirMove 路由事件。Identifies the StylusInAirMove routed event.

StylusInRangeEvent StylusInRangeEvent StylusInRangeEvent StylusInRangeEvent

标识 StylusInRange 路由事件。Identifies the StylusInRange routed event.

StylusLeaveEvent StylusLeaveEvent StylusLeaveEvent StylusLeaveEvent

标识 StylusLeave 路由事件。Identifies the StylusLeave routed event.

StylusMoveEvent StylusMoveEvent StylusMoveEvent StylusMoveEvent

标识 StylusMove 路由事件。Identifies the StylusMove routed event.

StylusOutOfRangeEvent StylusOutOfRangeEvent StylusOutOfRangeEvent StylusOutOfRangeEvent

标识 StylusOutOfRange 路由事件。Identifies the StylusOutOfRange routed event.

StylusSystemGestureEvent StylusSystemGestureEvent StylusSystemGestureEvent StylusSystemGestureEvent

标识 StylusSystemGesture 路由事件。Identifies the StylusSystemGesture routed event.

StylusUpEvent StylusUpEvent StylusUpEvent StylusUpEvent

标识 StylusUp 路由事件。Identifies the StylusUp routed event.

TextInputEvent TextInputEvent TextInputEvent TextInputEvent

标识 TextInput 路由事件。Identifies the TextInput routed event.

TouchDownEvent TouchDownEvent TouchDownEvent TouchDownEvent

标识 TouchDown 路由事件。Identifies the TouchDown routed event.

TouchEnterEvent TouchEnterEvent TouchEnterEvent TouchEnterEvent

标识 TouchEnter 路由事件。Identifies the TouchEnter routed event.

TouchLeaveEvent TouchLeaveEvent TouchLeaveEvent TouchLeaveEvent

标识 TouchLeave 路由事件。Identifies the TouchLeave routed event.

TouchMoveEvent TouchMoveEvent TouchMoveEvent TouchMoveEvent

标识 TouchMove 路由事件。Identifies the TouchMove routed event.

TouchUpEvent TouchUpEvent TouchUpEvent TouchUpEvent

标识 TouchUp 路由事件。Identifies the TouchUp routed event.

UidProperty UidProperty UidProperty UidProperty

标识 Uid 依赖项属性。Identifies the Uid dependency property.

VisibilityProperty VisibilityProperty VisibilityProperty VisibilityProperty

标识 Visibility 依赖项属性。Identifies the Visibility dependency property.

属性

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

AreAnyTouchesCaptured AreAnyTouchesCaptured AreAnyTouchesCaptured AreAnyTouchesCaptured

获取一个值,该值指示在此元素上是否至少捕获了一次触摸。Gets a value that indicates whether at least one touch is captured to this element.

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

AreAnyTouchesDirectlyOver AreAnyTouchesDirectlyOver AreAnyTouchesDirectlyOver AreAnyTouchesDirectlyOver

获取一个值,该值指示在此元素上是否至少按下了一次触摸设备。Gets a value that indicates whether at least one touch is pressed over this element.

AreAnyTouchesOver AreAnyTouchesOver AreAnyTouchesOver AreAnyTouchesOver

获取一个值,该值指示在此元素或其可视化树中的任何子元素上是否至少按下了一次触摸设备。Gets a value that indicates whether at least one touch is pressed over this element or any child elements in its visual tree.

BitmapEffect BitmapEffect BitmapEffect BitmapEffect

获取或设置一个位图效果,该效果将直接应用到此元素所呈现的内容。Gets or sets a bitmap effect that applies directly to the rendered content for this element. 这是依赖项属性。This is a dependency property.

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

CacheMode CacheMode CacheMode CacheMode

获取或设置 UIElement 的缓存表示形式。Gets or sets a cached representation of the UIElement.

Clip Clip Clip Clip

获取或设置用于定义元素内容轮廓的几何图形。Gets or sets the geometry used to define the outline of the contents of an element. 这是依赖项属性。This is a dependency property.

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

CommandBindings CommandBindings CommandBindings CommandBindings

获取与此元素关联的 CommandBinding 对象的集合。Gets a collection of CommandBinding objects associated with this element. CommandBinding 为此元素启用命令处理,并声明命令、命令的事件和由此元素附加的处理程序之间的链接。A CommandBinding enables command handling for this element, and declares the linkage between a command, its events, and the handlers attached by this element.

DependencyObjectType DependencyObjectType DependencyObjectType DependencyObjectType

获取对此实例的 CLRCLR 类型进行包装的 DependencyObjectTypeGets the DependencyObjectType that wraps the CLRCLR type of this instance.

(Inherited from DependencyObject)
DesiredSize DesiredSize DesiredSize DesiredSize

获取在布局流程的度量传递过程中此元素计算所得的大小。Gets the size that this element computed during the measure pass of the layout process.

Dispatcher Dispatcher Dispatcher Dispatcher

获取与此 Dispatcher 关联的 DispatcherObjectGets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
Effect Effect Effect Effect

获取或设置要应用于 UIElement 的位图效果。Gets or sets the bitmap effect to apply to the UIElement. 这是依赖项属性。This is a dependency property.

Focusable Focusable Focusable Focusable

获取或设置一个值,该值指示元素能否得到焦点。Gets or sets a value that indicates whether the element can receive focus. 这是依赖项属性。This is a dependency property.

HasAnimatedProperties HasAnimatedProperties HasAnimatedProperties HasAnimatedProperties

获取一个值,该值指示此元素是否具有任何进行动画处理的属性。Gets a value indicating whether this element has any animated properties.

HasEffectiveKeyboardFocus HasEffectiveKeyboardFocus HasEffectiveKeyboardFocus HasEffectiveKeyboardFocus

获取一个值,该值指示 UIElement 是否具有焦点。Gets a value that indicates whether the UIElement has focus.

InputBindings InputBindings InputBindings InputBindings

获取与此元素关联的输入绑定的集合。Gets the collection of input bindings associated with this element.

IsArrangeValid IsArrangeValid IsArrangeValid IsArrangeValid

获取一个值,该值指示此元素布局中的子元素的计算大小和位置是否有效。Gets a value indicating whether the computed size and position of child elements in this element's layout are valid.

IsEnabled IsEnabled IsEnabled IsEnabled

获取或设置一个值,该值指示是否 用户界面 (UI)user interface (UI) 中启用此元素。Gets or sets a value indicating whether this element is enabled in the 用户界面 (UI)user interface (UI). 这是依赖项属性。This is a dependency property.

IsEnabledCore IsEnabledCore IsEnabledCore IsEnabledCore

获取一个值,该值成为派生类中 IsEnabled 的返回值。Gets a value that becomes the return value of IsEnabled in derived classes.

IsFocused IsFocused IsFocused IsFocused

获取一个值,该值确定此元素是否具有逻辑焦点。Gets a value that determines whether this element has logical focus. 这是依赖项属性。This is a dependency property.

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

IsInputMethodEnabled IsInputMethodEnabled IsInputMethodEnabled IsInputMethodEnabled

获取一个值,该值指示是否启用输入法系统(如 输入法编辑器 (IME)Input Method Editor (IME))来处理此元素的输入。Gets a value indicating whether an input method system, such as an 输入法编辑器 (IME)Input Method Editor (IME), is enabled for processing the input to this element.

IsKeyboardFocused IsKeyboardFocused IsKeyboardFocused IsKeyboardFocused

获取一个值,该值表示该元素是否具有键盘焦点。Gets a value indicating whether this element has keyboard focus. 这是依赖项属性。This is a dependency property.

IsKeyboardFocusWithin IsKeyboardFocusWithin IsKeyboardFocusWithin IsKeyboardFocusWithin

获取一个值,该值指示键盘焦点是否位于元素或其可视化树子元素内的任意位置。Gets a value indicating whether keyboard focus is anywhere within the element or its visual tree child elements. 这是依赖项属性。This is a dependency property.

IsManipulationEnabled IsManipulationEnabled IsManipulationEnabled IsManipulationEnabled

获取或设置一个值,该值指示是否对此 UIElement 启用操作事件。Gets or sets a value that indicates whether manipulation events are enabled on this UIElement.

IsMeasureValid IsMeasureValid IsMeasureValid IsMeasureValid

获取一个值,该值指示布局测量返回的当前大小是否有效。Gets a value indicating whether the current size returned by layout measure is valid.

IsMouseCaptured IsMouseCaptured IsMouseCaptured IsMouseCaptured

获取一个值,该值指示此元素是否捕获了鼠标。Gets a value indicating whether the mouse is captured to this element. 这是依赖项属性。This is a dependency property.

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

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

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

IsSealed IsSealed IsSealed IsSealed

获取一个值,该值指示此实例当前是否为密封的(只读)。Gets a value that indicates whether this instance is currently sealed (read-only).

(Inherited from DependencyObject)
IsStylusCaptured IsStylusCaptured IsStylusCaptured IsStylusCaptured

获取一个值,该值表示此元素是否捕获了触笔。Gets a value indicating whether the stylus is captured by this element. 这是依赖项属性。This is a dependency property.

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

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

IsStylusOver IsStylusOver IsStylusOver IsStylusOver

获取一个值,该值指示触笔指针是否位于此元素(包括可视化子元素)的上方。Gets a value indicating whether the stylus cursor is located over this element (including visual child elements). 这是依赖项属性。This is a dependency property.

IsVisible IsVisible IsVisible IsVisible

获取一个值,该值指示此元素在用户界面 (UI)user interface (UI) 中是否可见。Gets a value indicating whether this element is visible in the 用户界面 (UI)user interface (UI). 这是依赖项属性。This is a dependency property.

Opacity Opacity Opacity Opacity

获取或设置当 UIElement用户界面 (UI)user interface (UI) 中呈现时为其整体应用的不透明度因子。Gets or sets the opacity factor applied to the entire UIElement when it is rendered in the 用户界面 (UI)user interface (UI). 这是依赖项属性。This is a dependency property.

OpacityMask OpacityMask OpacityMask OpacityMask

获取或设置一个作为 Brush 实现的不透明蒙板,该蒙板可应用到此元素所呈现内容的任何 Alpha 通道蒙板。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.

PersistId PersistId PersistId PersistId

获取一个唯一标识此元素的值。Gets a value that uniquely identifies this element.

RenderSize RenderSize RenderSize RenderSize

获取(或设置)此元素的最终呈现大小。Gets (or sets) the final render size of this element.

RenderTransform RenderTransform RenderTransform RenderTransform

获取或设置影响此元素的呈现位置的转换信息。Gets or sets transform information that affects the rendering position of this element. 这是依赖项属性。This is a dependency property.

RenderTransformOrigin RenderTransformOrigin RenderTransformOrigin RenderTransformOrigin

获取或设置由 RenderTransform 声明的任何可能呈现转换的中心点,相对于元素的边界。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.

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

StylusPlugIns StylusPlugIns StylusPlugIns StylusPlugIns

获取与此元素关联的所有触笔插件(自定义)对象的集合。Gets a collection of all stylus plug-in (customization) objects associated with this element.

TouchesCaptured TouchesCaptured TouchesCaptured TouchesCaptured

获取在此元素上捕获的所有触摸设备。Gets all touch devices that are captured to this element.

TouchesCapturedWithin TouchesCapturedWithin TouchesCapturedWithin TouchesCapturedWithin

获取在此元素或其可视化树中的任何子元素上捕获的所有触摸设备。Gets all touch devices that are captured to this element or any child elements in its visual tree.

TouchesDirectlyOver TouchesDirectlyOver TouchesDirectlyOver TouchesDirectlyOver

获取此元素上的所有触摸设备。Gets all touch devices that are over this element.

TouchesOver TouchesOver TouchesOver TouchesOver

获取在此元素或其可视化树中的任何子元素上的所有触摸设备。Gets all touch devices that are over this element or any child elements in its visual tree.

Uid Uid Uid Uid

获取或设置此元素的唯一标识符(用于本地化)。Gets or sets the unique identifier (for localization) for this element. 这是依赖项属性。This is a dependency property.

Visibility Visibility Visibility Visibility

获取或设置此元素的 用户界面 (UI)user interface (UI) 可见性。Gets or sets the 用户界面 (UI)user interface (UI) visibility of this element. 这是依赖项属性。This is a dependency property.

VisualBitmapEffect VisualBitmapEffect VisualBitmapEffect VisualBitmapEffect

获取或设置 BitmapEffectVisual 值。Gets or sets the BitmapEffect value for the Visual.

(Inherited from Visual)
VisualBitmapEffectInput VisualBitmapEffectInput VisualBitmapEffectInput VisualBitmapEffectInput

获取或设置 BitmapEffectInputVisual 值。Gets or sets the BitmapEffectInput value for the Visual.

(Inherited from Visual)
VisualBitmapScalingMode VisualBitmapScalingMode VisualBitmapScalingMode VisualBitmapScalingMode

获取或设置 BitmapScalingModeVisualGets or sets the BitmapScalingMode for the Visual.

(Inherited from Visual)
VisualCacheMode VisualCacheMode VisualCacheMode VisualCacheMode

获取或设置 Visual 的缓存表示形式。Gets or sets a cached representation of the Visual.

(Inherited from Visual)
VisualChildrenCount VisualChildrenCount VisualChildrenCount VisualChildrenCount

获取 Visual 的子元素数量。Gets the number of child elements for the Visual.

(Inherited from Visual)
VisualClearTypeHint VisualClearTypeHint VisualClearTypeHint VisualClearTypeHint

获取或设置 ClearTypeHint,它确定在 Visual 中呈现 ClearType 的方式。Gets or sets the ClearTypeHint that determines how ClearType is rendered in the Visual.

(Inherited from Visual)
VisualClip VisualClip VisualClip VisualClip

获取或设置 Visual 的剪辑区域作为 Geometry 值。Gets or sets the clip region of the Visual as a Geometry value.

(Inherited from Visual)
VisualEdgeMode VisualEdgeMode VisualEdgeMode VisualEdgeMode

获取或设置 Visual 的边缘模式作为 EdgeMode 值。Gets or sets the edge mode of the Visual as an EdgeMode value.

(Inherited from Visual)
VisualEffect VisualEffect VisualEffect VisualEffect

获取或设置要应用于 Visual 的位图效果。Gets or sets the bitmap effect to apply to the Visual.

(Inherited from Visual)
VisualOffset VisualOffset VisualOffset VisualOffset

获取或设置可视对象的偏移量值。Gets or sets the offset value of the visual object.

(Inherited from Visual)
VisualOpacity VisualOpacity VisualOpacity VisualOpacity

获取或设置 Visual 的不透明度。Gets or sets the opacity of the Visual.

(Inherited from Visual)
VisualOpacityMask VisualOpacityMask VisualOpacityMask VisualOpacityMask

获取或设置 Brush 值,该值表示 Visual 的不透明蒙板。Gets or sets the Brush value that represents the opacity mask of the Visual.

(Inherited from Visual)
VisualParent VisualParent VisualParent VisualParent

获取可视对象的可视化树父级。Gets the visual tree parent of the visual object.

(Inherited from Visual)
VisualScrollableAreaClip VisualScrollableAreaClip VisualScrollableAreaClip VisualScrollableAreaClip

获取或设置 Visual 的剪辑的可滚动区域。Gets or sets a clipped scrollable area for the Visual.

(Inherited from Visual)
VisualTextHintingMode VisualTextHintingMode VisualTextHintingMode VisualTextHintingMode

获取或设置 VisualTextHintingModeGets or sets the TextHintingMode of the Visual.

(Inherited from Visual)
VisualTextRenderingMode VisualTextRenderingMode VisualTextRenderingMode VisualTextRenderingMode

获取或设置 VisualTextRenderingModeGets or sets the TextRenderingMode of the Visual.

(Inherited from Visual)
VisualTransform VisualTransform VisualTransform VisualTransform

获取或设置 TransformVisual 值。Gets or sets the Transform value for the Visual.

(Inherited from Visual)
VisualXSnappingGuidelines VisualXSnappingGuidelines VisualXSnappingGuidelines VisualXSnappingGuidelines

获取或设置 X 坐标(垂直)准线集合。Gets or sets the x-coordinate (vertical) guideline collection.

(Inherited from Visual)
VisualYSnappingGuidelines VisualYSnappingGuidelines VisualYSnappingGuidelines VisualYSnappingGuidelines

获取或设置 Y 坐标(水平)准线集合。Gets or sets the y-coordinate (horizontal) guideline collection.

(Inherited from Visual)

方法

AddHandler(RoutedEvent, Delegate) AddHandler(RoutedEvent, Delegate) AddHandler(RoutedEvent, Delegate) AddHandler(RoutedEvent, Delegate)

为指定的路由事件添加路由事件处理程序,并将该处理程序添加到当前元素的处理程序集合中。Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element.

AddHandler(RoutedEvent, Delegate, Boolean) AddHandler(RoutedEvent, Delegate, Boolean) AddHandler(RoutedEvent, Delegate, Boolean) 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. handledEventsToo 指定为 true,可为已标记为由事件路由中的其他元素处理的路由事件调用所提供的处理程序。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.

AddToEventRoute(EventRoute, RoutedEventArgs) AddToEventRoute(EventRoute, RoutedEventArgs) AddToEventRoute(EventRoute, RoutedEventArgs) AddToEventRoute(EventRoute, RoutedEventArgs)

将处理程序添加到当前 EventRoute 事件处理程序集合的指定 UIElement 中。Adds handlers to the specified EventRoute for the current UIElement event handler collection.

AddVisualChild(Visual) AddVisualChild(Visual) AddVisualChild(Visual) AddVisualChild(Visual)

定义两个可视对象之间的父子关系。Defines the parent-child relationship between two visuals.

(Inherited from Visual)
ApplyAnimationClock(DependencyProperty, AnimationClock) ApplyAnimationClock(DependencyProperty, AnimationClock) ApplyAnimationClock(DependencyProperty, AnimationClock) 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.

ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) 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.

Arrange(Rect) Arrange(Rect) Arrange(Rect) Arrange(Rect)

定位子元素,并确定 UIElement 的大小。Positions child elements and determines a size for a UIElement. 父元素从它们的 ArrangeCore(Rect) 实现(或者是 WPF 框架级别等效项)调用此方法,以便形成递归布局更新。Parent elements call this method from their ArrangeCore(Rect) implementation (or a WPF framework-level equivalent) to form a recursive layout update. 此方法产生第二次布局更新。This method constitutes the second pass of a layout update.

ArrangeCore(Rect) ArrangeCore(Rect) ArrangeCore(Rect) ArrangeCore(Rect)

定义 WPF 核心级别排列布局定义的模板。Defines the template for WPF core-level arrange layout definition.

BeginAnimation(DependencyProperty, AnimationTimeline) BeginAnimation(DependencyProperty, AnimationTimeline) BeginAnimation(DependencyProperty, AnimationTimeline) BeginAnimation(DependencyProperty, AnimationTimeline)

为此元素的指定要进行动画处理的属性启动动画。Starts an animation for a specified animated property on this element.

BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) 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.

CaptureMouse() CaptureMouse() CaptureMouse() CaptureMouse()

尝试将鼠标强制捕获到此元素。Attempts to force capture of the mouse to this element.

CaptureStylus() CaptureStylus() CaptureStylus() CaptureStylus()

尝试将触笔强制捕获到此元素。Attempts to force capture of the stylus to this element.

CaptureTouch(TouchDevice) CaptureTouch(TouchDevice) CaptureTouch(TouchDevice) CaptureTouch(TouchDevice)

尝试将触摸屏输入强制捕获到此元素。Attempts to force capture of a touch to this element.

CheckAccess() CheckAccess() CheckAccess() CheckAccess()

确定调用线程是否可以访问此 DispatcherObjectDetermines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty)

清除属性的本地值。Clears the local value of a property. 要清除的属性由 DependencyProperty 标识符指定。The property to be cleared is specified by a DependencyProperty identifier.

(Inherited from DependencyObject)
ClearValue(DependencyPropertyKey) ClearValue(DependencyPropertyKey) ClearValue(DependencyPropertyKey) ClearValue(DependencyPropertyKey)

清除只读属性的本地值。Clears the local value of a read-only property. 要清除的属性由 DependencyPropertyKey 指定。The property to be cleared is specified by a DependencyPropertyKey.

(Inherited from DependencyObject)
CoerceValue(DependencyProperty) CoerceValue(DependencyProperty) CoerceValue(DependencyProperty) CoerceValue(DependencyProperty)

对指定依赖属性的值进行强制。Coerces the value of the specified dependency property. 通过对调用方 DependencyObject 上存在的依赖属性的属性元数据中所指定的任何 CoerceValueCallback 函数进行调用来完成此操作。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)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定提供的 DependencyObject 是否等效于当前 DependencyObjectDetermines whether a provided DependencyObject is equivalent to the current DependencyObject.

(Inherited from DependencyObject)
FindCommonVisualAncestor(DependencyObject) FindCommonVisualAncestor(DependencyObject) FindCommonVisualAncestor(DependencyObject) FindCommonVisualAncestor(DependencyObject)

返回两个可视对象的公共上级。Returns the common ancestor of two visual objects.

(Inherited from Visual)
Focus() Focus() Focus() Focus()

尝试将焦点设定到此元素上。Attempts to set focus to this element.

GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) 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.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

获取此 DependencyObject 的哈希代码。Gets a hash code for this DependencyObject.

(Inherited from DependencyObject)
GetLayoutClip(Size) GetLayoutClip(Size) GetLayoutClip(Size) GetLayoutClip(Size)

返回一个替代剪辑几何图形,它表示将 ClipToBounds 设置为 true 时要剪辑的区域。Returns an alternative clipping geometry that represents the region that would be clipped if ClipToBounds were set to true.

GetLocalValueEnumerator() GetLocalValueEnumerator() GetLocalValueEnumerator() GetLocalValueEnumerator()

创建一个专用的枚举数,用于确定哪些依赖项属性在此 DependencyObject 上具有以本地方式设置的值。Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject.

(Inherited from DependencyObject)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
GetUIParentCore() GetUIParentCore() GetUIParentCore() GetUIParentCore()

在派生类中重写时,如果不存在可视父级,则返回其他用户界面 (UI)user interface (UI) 父级。When overridden in a derived class, returns an alternative 用户界面 (UI)user interface (UI) parent for this element if no visual parent exists.

GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty)

DependencyObject 的此实例返回依赖属性的当前有效值。Returns the current effective value of a dependency property on this instance of a DependencyObject.

(Inherited from DependencyObject)
GetVisualChild(Int32) GetVisualChild(Int32) GetVisualChild(Int32) GetVisualChild(Int32)

返回父级 Visual 中的指定 VisualCollectionReturns the specified Visual in the parent VisualCollection.

(Inherited from Visual)
HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters)

实现 HitTestCore(GeometryHitTestParameters) 以提供基元素命中测试行为(返回 GeometryHitTestResult)。Implements HitTestCore(GeometryHitTestParameters) to supply base element hit testing behavior (returning GeometryHitTestResult).

HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters)

实现 HitTestCore(PointHitTestParameters) 以提供基元素命中测试行为(返回 HitTestResult)。Implements HitTestCore(PointHitTestParameters) to supply base element hit testing behavior (returning HitTestResult).

InputHitTest(Point) InputHitTest(Point) InputHitTest(Point) InputHitTest(Point)

返回指定坐标上的当前元素中的输入元素(相对于当前元素的源)。Returns the input element within the current element that is at the specified coordinates, relative to the current element's origin.

InvalidateArrange() InvalidateArrange() InvalidateArrange() InvalidateArrange()

使元素排列状态(布局)无效。Invalidates the arrange state (layout) for the element. 排列状态失效后,该元素将更新其布局,更新将以异步方式发生,除非随后由 UpdateLayout() 强制执行。After the invalidation, the element will have its layout updated, which will occur asynchronously unless subsequently forced by UpdateLayout().

InvalidateMeasure() InvalidateMeasure() InvalidateMeasure() InvalidateMeasure()

使元素度量状态(布局)无效。Invalidates the measurement state (layout) for the element.

InvalidateProperty(DependencyProperty) InvalidateProperty(DependencyProperty) InvalidateProperty(DependencyProperty) InvalidateProperty(DependencyProperty)

重新计算指定依赖项属性的有效值Re-evaluates the effective value for the specified dependency property

(Inherited from DependencyObject)
InvalidateVisual() InvalidateVisual() InvalidateVisual() InvalidateVisual()

使元素的呈现失效,并强制执行完整的新布局处理过程。Invalidates the rendering of the element, and forces a complete new layout pass. 完成布局循环后调用 OnRender(DrawingContext)OnRender(DrawingContext) is called after the layout cycle is completed.

IsAncestorOf(DependencyObject) IsAncestorOf(DependencyObject) IsAncestorOf(DependencyObject) IsAncestorOf(DependencyObject)

确定可视对象是否为后代可视对象的上级。Determines whether the visual object is an ancestor of the descendant visual object.

(Inherited from Visual)
IsDescendantOf(DependencyObject) IsDescendantOf(DependencyObject) IsDescendantOf(DependencyObject) IsDescendantOf(DependencyObject)

确定可视对象是否为上级可视对象的后代。Determines whether the visual object is a descendant of the ancestor visual object.

(Inherited from Visual)
Measure(Size) Measure(Size) Measure(Size) Measure(Size)

更新 UIElementDesiredSizeUpdates the DesiredSize of a UIElement. 父元素从其自身的 MeasureCore(Size) 实现调用此方法以形成递归布局更新。Parent elements call this method from their own MeasureCore(Size) implementations to form a recursive layout update. 调用此方法构成布局更新的第一个处理过程(“测量”处理过程)。Calling this method constitutes the first pass (the "Measure" pass) of a layout update.

MeasureCore(Size) MeasureCore(Size) MeasureCore(Size) MeasureCore(Size)

在派生类中重写时,提供测量逻辑来适当地调整此元素的大小,兼顾任何子元素内容的大小。When overridden in a derived class, provides measurement logic for sizing this element properly, with consideration of the size of any child element content.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
MoveFocus(TraversalRequest) MoveFocus(TraversalRequest) MoveFocus(TraversalRequest) MoveFocus(TraversalRequest)

尝试将焦点从此元素移到其他元素。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.

OnAccessKey(AccessKeyEventArgs) OnAccessKey(AccessKeyEventArgs) OnAccessKey(AccessKeyEventArgs) OnAccessKey(AccessKeyEventArgs)

在调用对于此元素有意义的访问键时提供类处理。Provides class handling for when an access key that is meaningful for this element is invoked.

OnChildDesiredSizeChanged(UIElement) OnChildDesiredSizeChanged(UIElement) OnChildDesiredSizeChanged(UIElement) OnChildDesiredSizeChanged(UIElement)

重新调整子元素的大小时支持布局行为。Supports layout behavior when a child element is resized.

OnCreateAutomationPeer() OnCreateAutomationPeer() OnCreateAutomationPeer() OnCreateAutomationPeer()

Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基础结构返回特定于类的 AutomationPeer 实现。Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure.

OnDpiChanged(DpiScale, DpiScale) OnDpiChanged(DpiScale, DpiScale) OnDpiChanged(DpiScale, DpiScale) OnDpiChanged(DpiScale, DpiScale)

呈现此视图时所使用的 DPI 发生变化时进行调用。Called when the DPI at which this View is rendered changes.

(Inherited from Visual)
OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs)

当某个未处理的 DragEnter 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnDragLeave(DragEventArgs) OnDragLeave(DragEventArgs) OnDragLeave(DragEventArgs) OnDragLeave(DragEventArgs)

当某个未处理的 DragLeave 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnDragOver(DragEventArgs) OnDragOver(DragEventArgs) OnDragOver(DragEventArgs) OnDragOver(DragEventArgs)

当某个未处理的 DragOver 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnDrop(DragEventArgs) OnDrop(DragEventArgs) OnDrop(DragEventArgs) OnDrop(DragEventArgs)

当某个未处理的 DragEnter 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs)

当某个未处理的 GiveFeedback 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnGotFocus(RoutedEventArgs) OnGotFocus(RoutedEventArgs) OnGotFocus(RoutedEventArgs) OnGotFocus(RoutedEventArgs)

使用所提供的事件数据引发 GotFocus 路由事件。Raises the GotFocus routed event by using the event data provided.

OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)

当某个未处理的 GotKeyboardFocus 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnGotMouseCapture(MouseEventArgs) OnGotMouseCapture(MouseEventArgs) OnGotMouseCapture(MouseEventArgs) OnGotMouseCapture(MouseEventArgs)

当某个未处理的 GotMouseCapture 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnGotStylusCapture(StylusEventArgs) OnGotStylusCapture(StylusEventArgs) OnGotStylusCapture(StylusEventArgs) OnGotStylusCapture(StylusEventArgs)

当某个未处理的 GotStylusCapture 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnGotTouchCapture(TouchEventArgs) OnGotTouchCapture(TouchEventArgs) OnGotTouchCapture(TouchEventArgs) OnGotTouchCapture(TouchEventArgs)

为在此元素上捕获触摸屏输入时发生的 GotTouchCapture 路由事件提供类处理。Provides class handling for the GotTouchCapture routed event that occurs when a touch is captured to this element.

OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs)

当针对此元素引发未处理的 IsKeyboardFocusedChanged 事件时调用。Invoked when an unhandled IsKeyboardFocusedChanged event is raised on this element. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)

在此元素即将引发 IsKeyboardFocusWithinChanged 事件前调用。Invoked just before the IsKeyboardFocusWithinChanged event is raised by this element. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs) OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs) OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs) OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs)

当针对此元素引发未处理的 IsMouseCapturedChanged 事件时调用。Invoked when an unhandled IsMouseCapturedChanged event is raised on this element. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs)

当针对此元素引发未处理的 IsMouseCaptureWithinChanged 事件时调用。Invoked when an unhandled IsMouseCaptureWithinChanged event is raised on this element. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs)

当针对此元素引发未处理的 IsMouseDirectlyOverChanged 事件时调用。Invoked when an unhandled IsMouseDirectlyOverChanged event is raised on this element. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs) OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs) OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs) OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs)

当针对此元素引发未处理的 IsStylusCapturedChanged 事件时调用。Invoked when an unhandled IsStylusCapturedChanged event is raised on this element. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs)

当针对此元素引发未处理的 IsStylusCaptureWithinChanged 事件时调用。Invoked when an unhandled IsStylusCaptureWithinChanged event is raised on this element. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs)

当针对此元素引发未处理的 IsStylusDirectlyOverChanged 事件时调用。Invoked when an unhandled IsStylusDirectlyOverChanged event is raised on this element. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

OnKeyDown(KeyEventArgs) OnKeyDown(KeyEventArgs) OnKeyDown(KeyEventArgs) OnKeyDown(KeyEventArgs)

当某个未处理的 KeyDown 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnKeyUp(KeyEventArgs) OnKeyUp(KeyEventArgs) OnKeyUp(KeyEventArgs) OnKeyUp(KeyEventArgs)

当某个未处理的 KeyUp 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnLostFocus(RoutedEventArgs) OnLostFocus(RoutedEventArgs) OnLostFocus(RoutedEventArgs) OnLostFocus(RoutedEventArgs)

使用提供的事件数据引发 LostFocus 路由事件。Raises the LostFocus routed event by using the event data that is provided.

OnLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)

当某个未处理的 LostKeyboardFocus 附加事件在其路由中到达派生自此类的某个元素时调用。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.

OnLostMouseCapture(MouseEventArgs) OnLostMouseCapture(MouseEventArgs) OnLostMouseCapture(MouseEventArgs) OnLostMouseCapture(MouseEventArgs)

当某个未处理的 LostMouseCapture 附加事件在其路由中到达派生自此类的某个元素时调用。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.

OnLostStylusCapture(StylusEventArgs) OnLostStylusCapture(StylusEventArgs) OnLostStylusCapture(StylusEventArgs) OnLostStylusCapture(StylusEventArgs)

当某个未处理的 LostStylusCapture 附加事件在其路由中到达派生自此类的某个元素时调用。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.

OnLostTouchCapture(TouchEventArgs) OnLostTouchCapture(TouchEventArgs) OnLostTouchCapture(TouchEventArgs) OnLostTouchCapture(TouchEventArgs)

为在此元素失去触摸屏输入捕获时发生的 LostTouchCapture 路由事件提供类处理。Provides class handling for the LostTouchCapture routed event that occurs when this element loses a touch capture.

OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs) OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs) OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs) OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs)

ManipulationBoundaryFeedback 事件发生时调用。Called when the ManipulationBoundaryFeedback event occurs.

OnManipulationCompleted(ManipulationCompletedEventArgs) OnManipulationCompleted(ManipulationCompletedEventArgs) OnManipulationCompleted(ManipulationCompletedEventArgs) OnManipulationCompleted(ManipulationCompletedEventArgs)

ManipulationCompleted 事件发生时调用。Called when the ManipulationCompleted event occurs.

OnManipulationDelta(ManipulationDeltaEventArgs) OnManipulationDelta(ManipulationDeltaEventArgs) OnManipulationDelta(ManipulationDeltaEventArgs) OnManipulationDelta(ManipulationDeltaEventArgs)

ManipulationDelta 事件发生时调用。Called when the ManipulationDelta event occurs.

OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs) OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs) OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs) OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs)

ManipulationInertiaStarting 事件发生时调用。Called when the ManipulationInertiaStarting event occurs.

OnManipulationStarted(ManipulationStartedEventArgs) OnManipulationStarted(ManipulationStartedEventArgs) OnManipulationStarted(ManipulationStartedEventArgs) OnManipulationStarted(ManipulationStartedEventArgs)

ManipulationStarted 事件发生时调用。Called when the ManipulationStarted event occurs.

OnManipulationStarting(ManipulationStartingEventArgs) OnManipulationStarting(ManipulationStartingEventArgs) OnManipulationStarting(ManipulationStartingEventArgs) OnManipulationStarting(ManipulationStartingEventArgs)

为在首次创建操作处理器时发生的 ManipulationStarting 路由事件提供类处理。Provides class handling for the ManipulationStarting routed event that occurs when the manipulation processor is first created.

OnMouseDown(MouseButtonEventArgs) OnMouseDown(MouseButtonEventArgs) OnMouseDown(MouseButtonEventArgs) OnMouseDown(MouseButtonEventArgs)

当某个未处理的 MouseDown 附加事件在其路由中到达派生自此类的某个元素时调用。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.

OnMouseEnter(MouseEventArgs) OnMouseEnter(MouseEventArgs) OnMouseEnter(MouseEventArgs) OnMouseEnter(MouseEventArgs)

当此元素引发未处理的 MouseEnter 附加事件时调用。Invoked when an unhandled MouseEnter attached event is raised on this element. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

OnMouseLeave(MouseEventArgs) OnMouseLeave(MouseEventArgs) OnMouseLeave(MouseEventArgs) OnMouseLeave(MouseEventArgs)

当此元素引发未处理的 MouseLeave 附加事件时调用。Invoked when an unhandled MouseLeave attached event is raised on this element. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

OnMouseLeftButtonDown(MouseButtonEventArgs) OnMouseLeftButtonDown(MouseButtonEventArgs) OnMouseLeftButtonDown(MouseButtonEventArgs) OnMouseLeftButtonDown(MouseButtonEventArgs)

当此元素引发未处理的 MouseLeftButtonDown 路由事件时调用。Invoked when an unhandled MouseLeftButtonDown routed event is raised on this element. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

OnMouseLeftButtonUp(MouseButtonEventArgs) OnMouseLeftButtonUp(MouseButtonEventArgs) OnMouseLeftButtonUp(MouseButtonEventArgs) OnMouseLeftButtonUp(MouseButtonEventArgs)

当某个未处理的 MouseLeftButtonUp 路由事件在其路由中到达派生自此类的某个元素时调用。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.

OnMouseMove(MouseEventArgs) OnMouseMove(MouseEventArgs) OnMouseMove(MouseEventArgs) OnMouseMove(MouseEventArgs)

当某个未处理的 MouseMove 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnMouseRightButtonDown(MouseButtonEventArgs) OnMouseRightButtonDown(MouseButtonEventArgs) OnMouseRightButtonDown(MouseButtonEventArgs) OnMouseRightButtonDown(MouseButtonEventArgs)

当某个未处理的 MouseRightButtonDown 路由事件在其路由中到达派生自此类的某个元素时调用。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.

OnMouseRightButtonUp(MouseButtonEventArgs) OnMouseRightButtonUp(MouseButtonEventArgs) OnMouseRightButtonUp(MouseButtonEventArgs) OnMouseRightButtonUp(MouseButtonEventArgs)

当某个未处理的 MouseRightButtonUp 路由事件在其路由中到达派生自此类的某个元素时调用。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.

OnMouseUp(MouseButtonEventArgs) OnMouseUp(MouseButtonEventArgs) OnMouseUp(MouseButtonEventArgs) OnMouseUp(MouseButtonEventArgs)

当某个未处理的 MouseUp 路由事件在其路由中到达派生自此类的某个元素时调用。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.

OnMouseWheel(MouseWheelEventArgs) OnMouseWheel(MouseWheelEventArgs) OnMouseWheel(MouseWheelEventArgs) OnMouseWheel(MouseWheelEventArgs)

当某个未处理的 MouseWheel 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewDragEnter(DragEventArgs) OnPreviewDragEnter(DragEventArgs) OnPreviewDragEnter(DragEventArgs) OnPreviewDragEnter(DragEventArgs)

当某个未处理的 PreviewDragEnter 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewDragLeave(DragEventArgs) OnPreviewDragLeave(DragEventArgs) OnPreviewDragLeave(DragEventArgs) OnPreviewDragLeave(DragEventArgs)

当某个未处理的 PreviewDragLeave 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewDragOver(DragEventArgs) OnPreviewDragOver(DragEventArgs) OnPreviewDragOver(DragEventArgs) OnPreviewDragOver(DragEventArgs)

当某个未处理的 PreviewDragOver 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewDrop(DragEventArgs) OnPreviewDrop(DragEventArgs) OnPreviewDrop(DragEventArgs) OnPreviewDrop(DragEventArgs)

当某个未处理的 PreviewDrop 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewGiveFeedback(GiveFeedbackEventArgs) OnPreviewGiveFeedback(GiveFeedbackEventArgs) OnPreviewGiveFeedback(GiveFeedbackEventArgs) OnPreviewGiveFeedback(GiveFeedbackEventArgs)

当某个未处理的 PreviewGiveFeedback 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs)

当某个未处理的 PreviewGotKeyboardFocus 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewKeyDown(KeyEventArgs) OnPreviewKeyDown(KeyEventArgs) OnPreviewKeyDown(KeyEventArgs) OnPreviewKeyDown(KeyEventArgs)

当某个未处理的 PreviewKeyDown 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewKeyUp(KeyEventArgs) OnPreviewKeyUp(KeyEventArgs) OnPreviewKeyUp(KeyEventArgs) OnPreviewKeyUp(KeyEventArgs)

当某个未处理的 PreviewKeyUp 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs)

当某个未处理的 PreviewKeyDown 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewMouseDown(MouseButtonEventArgs) OnPreviewMouseDown(MouseButtonEventArgs) OnPreviewMouseDown(MouseButtonEventArgs) OnPreviewMouseDown(MouseButtonEventArgs)

当某个未处理的 PreviewMouseDown 附加路由事件在其路由中到达派生自此类的某个元素时调用。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.

OnPreviewMouseLeftButtonDown(MouseButtonEventArgs) OnPreviewMouseLeftButtonDown(MouseButtonEventArgs) OnPreviewMouseLeftButtonDown(MouseButtonEventArgs) OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)

当某个未处理的 PreviewMouseLeftButtonDown 路由事件在其路由中到达派生自此类的某个元素时调用。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.

OnPreviewMouseLeftButtonUp(MouseButtonEventArgs) OnPreviewMouseLeftButtonUp(MouseButtonEventArgs) OnPreviewMouseLeftButtonUp(MouseButtonEventArgs) OnPreviewMouseLeftButtonUp(MouseButtonEventArgs)

当某个未处理的 PreviewMouseLeftButtonUp 路由事件在其路由中到达派生自此类的某个元素时调用。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.

OnPreviewMouseMove(MouseEventArgs) OnPreviewMouseMove(MouseEventArgs) OnPreviewMouseMove(MouseEventArgs) OnPreviewMouseMove(MouseEventArgs)

当某个未处理的 PreviewMouseMove 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewMouseRightButtonDown(MouseButtonEventArgs) OnPreviewMouseRightButtonDown(MouseButtonEventArgs) OnPreviewMouseRightButtonDown(MouseButtonEventArgs) OnPreviewMouseRightButtonDown(MouseButtonEventArgs)

当某个未处理的 PreviewMouseRightButtonDown 路由事件在其路由中到达派生自此类的某个元素时调用。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.

OnPreviewMouseRightButtonUp(MouseButtonEventArgs) OnPreviewMouseRightButtonUp(MouseButtonEventArgs) OnPreviewMouseRightButtonUp(MouseButtonEventArgs) OnPreviewMouseRightButtonUp(MouseButtonEventArgs)

当某个未处理的 PreviewMouseRightButtonUp 路由事件在其路由中到达派生自此类的某个元素时调用。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.

OnPreviewMouseUp(MouseButtonEventArgs) OnPreviewMouseUp(MouseButtonEventArgs) OnPreviewMouseUp(MouseButtonEventArgs) OnPreviewMouseUp(MouseButtonEventArgs)

当某个未处理的 PreviewMouseUp 附加事件在其路由中到达派生自此类的某个元素时调用。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.

OnPreviewMouseWheel(MouseWheelEventArgs) OnPreviewMouseWheel(MouseWheelEventArgs) OnPreviewMouseWheel(MouseWheelEventArgs) OnPreviewMouseWheel(MouseWheelEventArgs)

当某个未处理的 PreviewMouseWheel 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewQueryContinueDrag(QueryContinueDragEventArgs) OnPreviewQueryContinueDrag(QueryContinueDragEventArgs) OnPreviewQueryContinueDrag(QueryContinueDragEventArgs) OnPreviewQueryContinueDrag(QueryContinueDragEventArgs)

当某个未处理的 PreviewQueryContinueDrag 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewStylusButtonDown(StylusButtonEventArgs) OnPreviewStylusButtonDown(StylusButtonEventArgs) OnPreviewStylusButtonDown(StylusButtonEventArgs) OnPreviewStylusButtonDown(StylusButtonEventArgs)

当某个未处理的 PreviewStylusButtonDown 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewStylusButtonUp(StylusButtonEventArgs) OnPreviewStylusButtonUp(StylusButtonEventArgs) OnPreviewStylusButtonUp(StylusButtonEventArgs) OnPreviewStylusButtonUp(StylusButtonEventArgs)

当某个未处理的 PreviewStylusButtonUp 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewStylusDown(StylusDownEventArgs) OnPreviewStylusDown(StylusDownEventArgs) OnPreviewStylusDown(StylusDownEventArgs) OnPreviewStylusDown(StylusDownEventArgs)

当某个未处理的 PreviewStylusDown 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewStylusInAirMove(StylusEventArgs) OnPreviewStylusInAirMove(StylusEventArgs) OnPreviewStylusInAirMove(StylusEventArgs) OnPreviewStylusInAirMove(StylusEventArgs)

当某个未处理的 PreviewStylusInAirMove 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewStylusInRange(StylusEventArgs) OnPreviewStylusInRange(StylusEventArgs) OnPreviewStylusInRange(StylusEventArgs) OnPreviewStylusInRange(StylusEventArgs)

当某个未处理的 PreviewStylusInRange 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewStylusMove(StylusEventArgs) OnPreviewStylusMove(StylusEventArgs) OnPreviewStylusMove(StylusEventArgs) OnPreviewStylusMove(StylusEventArgs)

当某个未处理的 PreviewStylusMove 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewStylusOutOfRange(StylusEventArgs) OnPreviewStylusOutOfRange(StylusEventArgs) OnPreviewStylusOutOfRange(StylusEventArgs) OnPreviewStylusOutOfRange(StylusEventArgs)

当某个未处理的 PreviewStylusOutOfRange 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs) OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs) OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs) OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs)

当某个未处理的 PreviewStylusSystemGesture 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewStylusUp(StylusEventArgs) OnPreviewStylusUp(StylusEventArgs) OnPreviewStylusUp(StylusEventArgs) OnPreviewStylusUp(StylusEventArgs)

当某个未处理的 PreviewStylusUp 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewTextInput(TextCompositionEventArgs) OnPreviewTextInput(TextCompositionEventArgs) OnPreviewTextInput(TextCompositionEventArgs) OnPreviewTextInput(TextCompositionEventArgs)

当某个未处理的 PreviewTextInput 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnPreviewTouchDown(TouchEventArgs) OnPreviewTouchDown(TouchEventArgs) OnPreviewTouchDown(TouchEventArgs) OnPreviewTouchDown(TouchEventArgs)

为在触摸屏输入按下此元素时发生的 PreviewTouchDown 路由事件提供类处理。Provides class handling for the PreviewTouchDown routed event that occurs when a touch presses this element.

OnPreviewTouchMove(TouchEventArgs) OnPreviewTouchMove(TouchEventArgs) OnPreviewTouchMove(TouchEventArgs) OnPreviewTouchMove(TouchEventArgs)

为在此元素内部移动触摸屏输入时发生的 PreviewTouchMove 路由事件提供类处理。Provides class handling for the PreviewTouchMove routed event that occurs when a touch moves while inside this element.

OnPreviewTouchUp(TouchEventArgs) OnPreviewTouchUp(TouchEventArgs) OnPreviewTouchUp(TouchEventArgs) OnPreviewTouchUp(TouchEventArgs)

为在此元素内部释放触摸屏输入时发生的 PreviewTouchUp 路由事件提供类处理。Provides class handling for the PreviewTouchUp routed event that occurs when a touch is released inside this element.

OnPropertyChanged(DependencyPropertyChangedEventArgs) OnPropertyChanged(DependencyPropertyChangedEventArgs) OnPropertyChanged(DependencyPropertyChangedEventArgs) OnPropertyChanged(DependencyPropertyChangedEventArgs)

每当更新此 DependencyObject 的任何依赖属性的有效值时调用。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)
OnQueryContinueDrag(QueryContinueDragEventArgs) OnQueryContinueDrag(QueryContinueDragEventArgs) OnQueryContinueDrag(QueryContinueDragEventArgs) OnQueryContinueDrag(QueryContinueDragEventArgs)

当某个未处理的 QueryContinueDrag 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnQueryCursor(QueryCursorEventArgs) OnQueryCursor(QueryCursorEventArgs) OnQueryCursor(QueryCursorEventArgs) OnQueryCursor(QueryCursorEventArgs)

当某个未处理的 QueryCursor 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnRender(DrawingContext) OnRender(DrawingContext) OnRender(DrawingContext) OnRender(DrawingContext)

在派生类中重写时,会参与由布局系统控制的呈现操作。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.

OnRenderSizeChanged(SizeChangedInfo) OnRenderSizeChanged(SizeChangedInfo) OnRenderSizeChanged(SizeChangedInfo) OnRenderSizeChanged(SizeChangedInfo)

在派生类中重写时,会参与由布局系统控制的呈现操作。When overridden in a derived class, participates in rendering operations that are directed by the layout system. 如果元素的 RenderSize 已因布局更新而更改,则在布局更新之后以及呈现之前调用此方法。This method is invoked after layout update, and before rendering, if the element's RenderSize has changed as a result of layout update.

OnStylusButtonDown(StylusButtonEventArgs) OnStylusButtonDown(StylusButtonEventArgs) OnStylusButtonDown(StylusButtonEventArgs) OnStylusButtonDown(StylusButtonEventArgs)

当某个未处理的 StylusButtonDown 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnStylusButtonUp(StylusButtonEventArgs) OnStylusButtonUp(StylusButtonEventArgs) OnStylusButtonUp(StylusButtonEventArgs) OnStylusButtonUp(StylusButtonEventArgs)

当某个未处理的 StylusButtonUp 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnStylusDown(StylusDownEventArgs) OnStylusDown(StylusDownEventArgs) OnStylusDown(StylusDownEventArgs) OnStylusDown(StylusDownEventArgs)

当某个未处理的 StylusDown 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnStylusEnter(StylusEventArgs) OnStylusEnter(StylusEventArgs) OnStylusEnter(StylusEventArgs) OnStylusEnter(StylusEventArgs)

当此元素引发未处理的 StylusEnter 附加事件时调用。Invoked when an unhandled StylusEnter attached event is raised by this element. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

OnStylusInAirMove(StylusEventArgs) OnStylusInAirMove(StylusEventArgs) OnStylusInAirMove(StylusEventArgs) OnStylusInAirMove(StylusEventArgs)

当某个未处理的 StylusInAirMove 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnStylusInRange(StylusEventArgs) OnStylusInRange(StylusEventArgs) OnStylusInRange(StylusEventArgs) OnStylusInRange(StylusEventArgs)

当某个未处理的 StylusInRange 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnStylusLeave(StylusEventArgs) OnStylusLeave(StylusEventArgs) OnStylusLeave(StylusEventArgs) OnStylusLeave(StylusEventArgs)

当此元素引发未处理的 StylusLeave 附加事件时调用。Invoked when an unhandled StylusLeave attached event is raised by this element. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

OnStylusMove(StylusEventArgs) OnStylusMove(StylusEventArgs) OnStylusMove(StylusEventArgs) OnStylusMove(StylusEventArgs)

当某个未处理的 StylusMove 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnStylusOutOfRange(StylusEventArgs) OnStylusOutOfRange(StylusEventArgs) OnStylusOutOfRange(StylusEventArgs) OnStylusOutOfRange(StylusEventArgs)

当某个未处理的 StylusOutOfRange 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnStylusSystemGesture(StylusSystemGestureEventArgs) OnStylusSystemGesture(StylusSystemGestureEventArgs) OnStylusSystemGesture(StylusSystemGestureEventArgs) OnStylusSystemGesture(StylusSystemGestureEventArgs)

当某个未处理的 StylusSystemGesture 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnStylusUp(StylusEventArgs) OnStylusUp(StylusEventArgs) OnStylusUp(StylusEventArgs) OnStylusUp(StylusEventArgs)

当某个未处理的 StylusUp 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnTextInput(TextCompositionEventArgs) OnTextInput(TextCompositionEventArgs) OnTextInput(TextCompositionEventArgs) OnTextInput(TextCompositionEventArgs)

当某个未处理的 TextInput 附加事件到达派生自此类的其路由中的某个元素时调用。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.

OnTouchDown(TouchEventArgs) OnTouchDown(TouchEventArgs) OnTouchDown(TouchEventArgs) OnTouchDown(TouchEventArgs)

为在此元素内按下触摸屏输入时发生的 TouchDown 路由事件提供类处理。Provides class handling for the TouchDown routed event that occurs when a touch presses inside this element.

OnTouchEnter(TouchEventArgs) OnTouchEnter(TouchEventArgs) OnTouchEnter(TouchEventArgs) OnTouchEnter(TouchEventArgs)

为在触摸屏输入从此元素边界外部移动到其内部时发生的 TouchEnter 路由事件提供类处理。Provides class handling for the TouchEnter routed event that occurs when a touch moves from outside to inside the bounds of this element.

OnTouchLeave(TouchEventArgs) OnTouchLeave(TouchEventArgs) OnTouchLeave(TouchEventArgs) OnTouchLeave(TouchEventArgs)

为在触摸屏输入从此 TouchLeave 边界内部移动到其外部时发生的 UIElement 路由事件提供类处理。Provides class handling for the TouchLeave routed event that occurs when a touch moves from inside to outside the bounds of this UIElement.

OnTouchMove(TouchEventArgs) OnTouchMove(TouchEventArgs) OnTouchMove(TouchEventArgs) OnTouchMove(TouchEventArgs)

为在此元素内部移动触摸屏输入时发生的 TouchMove 路由事件提供类处理。Provides class handling for the TouchMove routed event that occurs when a touch moves while inside this element.

OnTouchUp(TouchEventArgs) OnTouchUp(TouchEventArgs) OnTouchUp(TouchEventArgs) OnTouchUp(TouchEventArgs)

为在此元素内部释放触摸屏输入时发生的 TouchUp 路由事件提供类处理。Provides class handling for the TouchUp routed event that occurs when a touch is released inside this element.

OnVisualChildrenChanged(DependencyObject, DependencyObject) OnVisualChildrenChanged(DependencyObject, DependencyObject) OnVisualChildrenChanged(DependencyObject, DependencyObject) OnVisualChildrenChanged(DependencyObject, DependencyObject)

修改可视对象的 VisualCollection 时调用。Called when the VisualCollection of the visual object is modified.

(Inherited from Visual)
OnVisualParentChanged(DependencyObject) OnVisualParentChanged(DependencyObject) OnVisualParentChanged(DependencyObject) OnVisualParentChanged(DependencyObject)

在此 UIElement 的父元素报告其基础可视父元素发生更改时,调用此方法。Invoked when the parent element of this UIElement reports a change to its underlying visual parent.

PointFromScreen(Point) PointFromScreen(Point) PointFromScreen(Point) PointFromScreen(Point)

将屏幕坐标中的 Point 转换为表示 Point 的当前坐标系的 VisualConverts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual.

(Inherited from Visual)
PointToScreen(Point) PointToScreen(Point) PointToScreen(Point) PointToScreen(Point)

将表示 Point 的当前坐标系的 Visual 转换为屏幕坐标中的 PointConverts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates.

(Inherited from Visual)
PredictFocus(FocusNavigationDirection) PredictFocus(FocusNavigationDirection) PredictFocus(FocusNavigationDirection) PredictFocus(FocusNavigationDirection)

当在派生类中重写时,返回将按指定焦点遍历方向接收焦点的元素,而不用实际将焦点移至该元素。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.

RaiseEvent(RoutedEventArgs) RaiseEvent(RoutedEventArgs) RaiseEvent(RoutedEventArgs) RaiseEvent(RoutedEventArgs)

引发特定路由事件。Raises a specific routed event. 在提供的 RoutedEventArgs 实例内标识将引发的 RoutedEvent(作为该事件数据的 RoutedEvent 属性)。The RoutedEvent to be raised is identified within the RoutedEventArgs instance that is provided (as the RoutedEvent property of that event data).

ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty)

如果存在,则返回依赖属性的本地值。Returns the local value of a dependency property, if it exists.

(Inherited from DependencyObject)
ReleaseAllTouchCaptures() ReleaseAllTouchCaptures() ReleaseAllTouchCaptures() ReleaseAllTouchCaptures()

从此元素中释放所有捕获的触摸设备。Releases all captured touch devices from this element.

ReleaseMouseCapture() ReleaseMouseCapture() ReleaseMouseCapture() ReleaseMouseCapture()

如果此元素具有鼠标捕获,则释放该捕获。Releases the mouse capture, if this element held the capture.

ReleaseStylusCapture() ReleaseStylusCapture() ReleaseStylusCapture() ReleaseStylusCapture()

如果此元素具有触笔设备捕获,则释放该捕获。Releases the stylus device capture, if this element held the capture.

ReleaseTouchCapture(TouchDevice) ReleaseTouchCapture(TouchDevice) ReleaseTouchCapture(TouchDevice) ReleaseTouchCapture(TouchDevice)

尝试从此元素释放指定触摸设备。Attempts to release the specified touch device from this element.

RemoveHandler(RoutedEvent, Delegate) RemoveHandler(RoutedEvent, Delegate) RemoveHandler(RoutedEvent, Delegate) RemoveHandler(RoutedEvent, Delegate)

从此元素中删除指定的路由事件处理程序。Removes the specified routed event handler from this element.

RemoveVisualChild(Visual) RemoveVisualChild(Visual) RemoveVisualChild(Visual) RemoveVisualChild(Visual)

移除两个可视对象之间的父子关系。Removes the parent-child relationship between two visuals.

(Inherited from Visual)
SetCurrentValue(DependencyProperty, Object) SetCurrentValue(DependencyProperty, Object) SetCurrentValue(DependencyProperty, Object) SetCurrentValue(DependencyProperty, Object)

设置依赖属性的值而不更改其值源。Sets the value of a dependency property without changing its value source.

(Inherited from DependencyObject)
SetValue(DependencyProperty, Object) SetValue(DependencyProperty, Object) SetValue(DependencyProperty, Object) SetValue(DependencyProperty, Object)

设置依赖属性的本地值,该值由其依赖属性标识符指定。Sets the local value of a dependency property, specified by its dependency property identifier.

(Inherited from DependencyObject)
SetValue(DependencyPropertyKey, Object) SetValue(DependencyPropertyKey, Object) SetValue(DependencyPropertyKey, Object) SetValue(DependencyPropertyKey, Object)

设置一个只读依赖属性的本地值,该值由依赖属性的 DependencyPropertyKey 标识符指定。Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.

(Inherited from DependencyObject)
ShouldSerializeCommandBindings() ShouldSerializeCommandBindings() ShouldSerializeCommandBindings() ShouldSerializeCommandBindings()

返回序列化进程是否应在此类的实例上序列化 CommandBindings 属性的内容。Returns whether serialization processes should serialize the contents of the CommandBindings property on instances of this class.

ShouldSerializeInputBindings() ShouldSerializeInputBindings() ShouldSerializeInputBindings() ShouldSerializeInputBindings()

返回序列化进程是否应在此类的实例上序列化 InputBindings 属性的内容。Returns whether serialization processes should serialize the contents of the InputBindings property on instances of this class.

ShouldSerializeProperty(DependencyProperty) ShouldSerializeProperty(DependencyProperty) ShouldSerializeProperty(DependencyProperty) ShouldSerializeProperty(DependencyProperty)

返回一个值,该值指示序列化进程是否应序列化所提供的依赖属性的值。Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.

(Inherited from DependencyObject)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)
TransformToAncestor(Visual) TransformToAncestor(Visual) TransformToAncestor(Visual) TransformToAncestor(Visual)

返回一个转换,该转换可用于将 Visual 中的坐标转换为可视对象的指定 Visual 上级。Returns a transform that can be used to transform coordinates from the Visual to the specified Visual ancestor of the visual object.

(Inherited from Visual)
TransformToAncestor(Visual3D) TransformToAncestor(Visual3D) TransformToAncestor(Visual3D) TransformToAncestor(Visual3D)

返回一个转换,该转换可用于将 Visual 中的坐标转换为可视对象的指定 Visual3D 上级。Returns a transform that can be used to transform coordinates from the Visual to the specified Visual3D ancestor of the visual object.

(Inherited from Visual)
TransformToDescendant(Visual) TransformToDescendant(Visual) TransformToDescendant(Visual) TransformToDescendant(Visual)

返回一个转换,该转换可用于将 Visual 中的坐标转换为指定的可视对象后代。Returns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant.

(Inherited from Visual)
TransformToVisual(Visual) TransformToVisual(Visual) TransformToVisual(Visual) TransformToVisual(Visual)

返回一个转换,该转换可用于将 Visual 中的坐标转换为指定的可视对象。Returns a transform that can be used to transform coordinates from the Visual to the specified visual object.

(Inherited from Visual)
TranslatePoint(Point, UIElement) TranslatePoint(Point, UIElement) TranslatePoint(Point, UIElement) TranslatePoint(Point, UIElement)

将相对于此元素的点转换为相对于指定元素的坐标。Translates a point relative to this element to coordinates that are relative to the specified element.

UpdateLayout() UpdateLayout() UpdateLayout() UpdateLayout()

请确保此元素的所有可视子元素都正确地进行了布局更新。Ensures that all visual child elements of this element are properly updated for layout.

VerifyAccess() VerifyAccess() VerifyAccess() VerifyAccess()

强制调用线程具有此 DispatcherObject 的访问权限。Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)

事件

DragEnter DragEnter DragEnter DragEnter

在输入系统报告出现以此元素为拖动目标的基础拖动事件时发生。Occurs when the input system reports an underlying drag event with this element as the drag target.

DragLeave DragLeave DragLeave DragLeave

在输入系统报告出现以此元素为拖动起点的基础拖动事件时发生。Occurs when the input system reports an underlying drag event with this element as the drag origin.

DragOver DragOver DragOver DragOver

在输入系统报告出现以此元素为可能放置目标的基础拖动事件时发生。Occurs when the input system reports an underlying drag event with this element as the potential drop target.

Drop Drop Drop Drop

在输入系统报告出现将此元素作为放置目标的基础放置事件时发生。Occurs when the input system reports an underlying drop event with this element as the drop target.

FocusableChanged FocusableChanged FocusableChanged FocusableChanged

Focusable 属性的值更改时发生。Occurs when the value of the Focusable property changes.

GiveFeedback GiveFeedback GiveFeedback GiveFeedback

在输入系统报告出现涉及此元素的基础拖放操作时发生。Occurs when the input system reports an underlying drag-and-drop event that involves this element.

GotFocus GotFocus GotFocus GotFocus

在此元素获得逻辑焦点时发生。Occurs when this element gets logical focus.

GotKeyboardFocus GotKeyboardFocus GotKeyboardFocus GotKeyboardFocus

在此元素聚焦于键盘时发生。Occurs when the keyboard is focused on this element.

GotMouseCapture GotMouseCapture GotMouseCapture GotMouseCapture

在此元素捕获鼠标时发生。Occurs when this element captures the mouse.

GotStylusCapture GotStylusCapture GotStylusCapture GotStylusCapture

在此元素捕获触笔时发生。Occurs when this element captures the stylus.

GotTouchCapture GotTouchCapture GotTouchCapture GotTouchCapture

在此元素上捕获触摸屏输入时发生。Occurs when a touch is captured to this element.

IsEnabledChanged IsEnabledChanged IsEnabledChanged IsEnabledChanged

在此元素的 IsEnabled 属性值更改时发生。Occurs when the value of the IsEnabled property on this element changes.

IsHitTestVisibleChanged IsHitTestVisibleChanged IsHitTestVisibleChanged IsHitTestVisibleChanged

在此元素的 IsHitTestVisible 依赖项属性值更改时发生。Occurs when the value of the IsHitTestVisible dependency property changes on this element.

IsKeyboardFocusedChanged IsKeyboardFocusedChanged IsKeyboardFocusedChanged IsKeyboardFocusedChanged

在此元素的 IsKeyboardFocused 属性值更改时发生。Occurs when the value of the IsKeyboardFocused property changes on this element.

IsKeyboardFocusWithinChanged IsKeyboardFocusWithinChanged IsKeyboardFocusWithinChanged IsKeyboardFocusWithinChanged

在此元素的 IsKeyboardFocusWithin 属性值更改时发生。Occurs when the value of the IsKeyboardFocusWithin property changes on this element.

IsMouseCapturedChanged IsMouseCapturedChanged IsMouseCapturedChanged IsMouseCapturedChanged

在此元素的 IsMouseCaptured 属性值更改时发生。Occurs when the value of the IsMouseCaptured property changes on this element.

IsMouseCaptureWithinChanged IsMouseCaptureWithinChanged IsMouseCaptureWithinChanged IsMouseCaptureWithinChanged

在此元素的 IsMouseCaptureWithinProperty 值更改时发生。Occurs when the value of the IsMouseCaptureWithinProperty changes on this element.

IsMouseDirectlyOverChanged IsMouseDirectlyOverChanged IsMouseDirectlyOverChanged IsMouseDirectlyOverChanged

在此元素的 IsMouseDirectlyOver 属性值更改时发生。Occurs when the value of the IsMouseDirectlyOver property changes on this element.

IsStylusCapturedChanged IsStylusCapturedChanged IsStylusCapturedChanged IsStylusCapturedChanged

在此元素的 IsStylusCaptured 属性值更改时发生。Occurs when the value of the IsStylusCaptured property changes on this element.

IsStylusCaptureWithinChanged IsStylusCaptureWithinChanged IsStylusCaptureWithinChanged IsStylusCaptureWithinChanged

在此元素的 IsStylusCaptureWithin 属性值更改时发生。Occurs when the value of the IsStylusCaptureWithin property changes on this element.

IsStylusDirectlyOverChanged IsStylusDirectlyOverChanged IsStylusDirectlyOverChanged IsStylusDirectlyOverChanged

在此元素的 IsStylusDirectlyOver 属性值更改时发生。Occurs when the value of the IsStylusDirectlyOver property changes on this element.

IsVisibleChanged IsVisibleChanged IsVisibleChanged IsVisibleChanged

在此元素的 IsVisible 属性值更改时发生。Occurs when the value of the IsVisible property changes on this element.

KeyDown KeyDown KeyDown KeyDown

当焦点在该元素上时按下某个键后发生。Occurs when a key is pressed while focus is on this element.

KeyUp KeyUp KeyUp KeyUp

当焦点在该元素上时松开某个键后发生。Occurs when a key is released while focus is on this element.

LayoutUpdated LayoutUpdated LayoutUpdated LayoutUpdated

在与当前 Dispatcher 关联的各种可视元素的布局更改时发生。Occurs when the layout of the various visual elements associated with the current Dispatcher changes.

LostFocus LostFocus LostFocus LostFocus

在此元素丢失逻辑焦点时发生。Occurs when this element loses logical focus.

LostKeyboardFocus LostKeyboardFocus LostKeyboardFocus LostKeyboardFocus

在键盘焦点不再位于此元素上时发生。Occurs when the keyboard is no longer focused on this element,.

LostMouseCapture LostMouseCapture LostMouseCapture LostMouseCapture

在此元素丢失鼠标捕获时发生。Occurs when this element loses mouse capture.

LostStylusCapture LostStylusCapture LostStylusCapture LostStylusCapture

在此元素丢失触笔捕获时发生。Occurs when this element loses stylus capture.

LostTouchCapture LostTouchCapture LostTouchCapture LostTouchCapture

在此元素失去触摸屏输入捕获时发生。Occurs when this element loses a touch capture.

ManipulationBoundaryFeedback ManipulationBoundaryFeedback ManipulationBoundaryFeedback ManipulationBoundaryFeedback

当操作遇到边界时发生。Occurs when the manipulation encounters a boundary.

ManipulationCompleted ManipulationCompleted ManipulationCompleted ManipulationCompleted

对于 UIElement 对象的操作和延时完毕时发生。Occurs when a manipulation and inertia on the UIElement object is complete.

ManipulationDelta ManipulationDelta ManipulationDelta ManipulationDelta

当输入设备在操作期间更改位置时发生。Occurs when the input device changes position during a manipulation.

ManipulationInertiaStarting ManipulationInertiaStarting ManipulationInertiaStarting ManipulationInertiaStarting

当输入设备在操作期间与 UIElement 对象失去联系且延时开始时发生。Occurs when the input device loses contact with the UIElement object during a manipulation and inertia begins.

ManipulationStarted ManipulationStarted ManipulationStarted ManipulationStarted

当输入设备对 UIElement 对象开始操作时发生。Occurs when an input device begins a manipulation on the UIElement object.

ManipulationStarting ManipulationStarting ManipulationStarting ManipulationStarting

在首次创建操作处理器时发生。Occurs when the manipulation processor is first created.

MouseDown MouseDown MouseDown MouseDown

在指针位于此元素上并且按下任意鼠标按钮时发生。Occurs when any mouse button is pressed while the pointer is over this element.

MouseEnter MouseEnter MouseEnter MouseEnter

在鼠标指针进入此元素的边界时发生。Occurs when the mouse pointer enters the bounds of this element.

MouseLeave MouseLeave MouseLeave MouseLeave

在鼠标指针离开此元素的边界时发生。Occurs when the mouse pointer leaves the bounds of this element.

MouseLeftButtonDown MouseLeftButtonDown MouseLeftButtonDown MouseLeftButtonDown

在鼠标指针位于此元素上并且按下鼠标左键时发生。Occurs when the left mouse button is pressed while the mouse pointer is over this element.

MouseLeftButtonUp MouseLeftButtonUp MouseLeftButtonUp MouseLeftButtonUp

在鼠标指针位于此元素上并且松开鼠标左键时发生。Occurs when the left mouse button is released while the mouse pointer is over this element.

MouseMove MouseMove MouseMove MouseMove

在鼠标指针位于此元素上并且移动鼠标指针时发生。Occurs when the mouse pointer moves while over this element.

MouseRightButtonDown MouseRightButtonDown MouseRightButtonDown MouseRightButtonDown

在鼠标指针位于此元素上并且按下鼠标右键时发生。Occurs when the right mouse button is pressed while the mouse pointer is over this element.

MouseRightButtonUp MouseRightButtonUp MouseRightButtonUp MouseRightButtonUp

在鼠标指针位于此元素上并且松开鼠标右键时发生。Occurs when the right mouse button is released while the mouse pointer is over this element.

MouseUp MouseUp MouseUp MouseUp

在鼠标指针位于此元素上并且松开任意鼠标按钮时发生。Occurs when any mouse button is released over this element.

MouseWheel MouseWheel MouseWheel MouseWheel

在鼠标指针位于此元素上并且用户滚动鼠标滚轮时发生。Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.

PreviewDragEnter PreviewDragEnter PreviewDragEnter PreviewDragEnter

在输入系统报告出现以此元素为拖动目标的基础拖动事件时发生。Occurs when the input system reports an underlying drag event with this element as the drag target.

PreviewDragLeave PreviewDragLeave PreviewDragLeave PreviewDragLeave

在输入系统报告出现以此元素为拖动起点的基础拖动事件时发生。Occurs when the input system reports an underlying drag event with this element as the drag origin.

PreviewDragOver PreviewDragOver PreviewDragOver PreviewDragOver

在输入系统报告出现以此元素为可能放置目标的基础拖动事件时发生。Occurs when the input system reports an underlying drag event with this element as the potential drop target.

PreviewDrop PreviewDrop PreviewDrop PreviewDrop

在输入系统报告出现将此元素作为放置目标的基础放置事件时发生。Occurs when the input system reports an underlying drop event with this element as the drop target.

PreviewGiveFeedback PreviewGiveFeedback PreviewGiveFeedback PreviewGiveFeedback

在开始拖放操作时发生。Occurs when a drag-and-drop operation is started.

PreviewGotKeyboardFocus PreviewGotKeyboardFocus PreviewGotKeyboardFocus PreviewGotKeyboardFocus

在此元素聚焦于键盘时发生。Occurs when the keyboard is focused on this element.

PreviewKeyDown PreviewKeyDown PreviewKeyDown PreviewKeyDown

当焦点在该元素上时按下某个键后发生。Occurs when a key is pressed while focus is on this element.

PreviewKeyUp PreviewKeyUp PreviewKeyUp PreviewKeyUp

当焦点在该元素上时松开某个键后发生。Occurs when a key is released while focus is on this element.

PreviewLostKeyboardFocus PreviewLostKeyboardFocus PreviewLostKeyboardFocus PreviewLostKeyboardFocus

在此元素不再聚焦于键盘时发生。Occurs when the keyboard is no longer focused on this element.

PreviewMouseDown PreviewMouseDown PreviewMouseDown PreviewMouseDown

在指针位于此元素上并且按下任意鼠标按钮时发生。Occurs when any mouse button is pressed while the pointer is over this element.

PreviewMouseLeftButtonDown PreviewMouseLeftButtonDown PreviewMouseLeftButtonDown PreviewMouseLeftButtonDown

在鼠标指针位于此元素上并且按下鼠标左键时发生。Occurs when the left mouse button is pressed while the mouse pointer is over this element.

PreviewMouseLeftButtonUp PreviewMouseLeftButtonUp PreviewMouseLeftButtonUp PreviewMouseLeftButtonUp

在鼠标指针位于此元素上并且松开鼠标左键时发生。Occurs when the left mouse button is released while the mouse pointer is over this element.

PreviewMouseMove PreviewMouseMove PreviewMouseMove PreviewMouseMove

在鼠标指针位于此元素上并且移动鼠标指针时发生。Occurs when the mouse pointer moves while the mouse pointer is over this element.

PreviewMouseRightButtonDown PreviewMouseRightButtonDown PreviewMouseRightButtonDown PreviewMouseRightButtonDown

在鼠标指针位于此元素上并且按下鼠标右键时发生。Occurs when the right mouse button is pressed while the mouse pointer is over this element.

PreviewMouseRightButtonUp PreviewMouseRightButtonUp PreviewMouseRightButtonUp PreviewMouseRightButtonUp

在鼠标指针位于此元素上并且松开鼠标右键时发生。Occurs when the right mouse button is released while the mouse pointer is over this element.

PreviewMouseUp PreviewMouseUp PreviewMouseUp PreviewMouseUp

在鼠标指针位于此元素上并且松开任意鼠标按钮时发生。Occurs when any mouse button is released while the mouse pointer is over this element.

PreviewMouseWheel PreviewMouseWheel PreviewMouseWheel PreviewMouseWheel

在鼠标指针位于此元素上并且用户滚动鼠标滚轮时发生。Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.

PreviewQueryContinueDrag PreviewQueryContinueDrag PreviewQueryContinueDrag PreviewQueryContinueDrag

在拖放操作期间键盘或鼠标按钮的状态改变时发生。Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.

PreviewStylusButtonDown PreviewStylusButtonDown PreviewStylusButtonDown PreviewStylusButtonDown

在指针位于此元素上并且按下触笔按钮时发生。Occurs when the stylus button is pressed while the pointer is over this element.

PreviewStylusButtonUp PreviewStylusButtonUp PreviewStylusButtonUp PreviewStylusButtonUp

在指针位于此元素上并且松开触笔按钮时发生。Occurs when the stylus button is released while the pointer is over this element.

PreviewStylusDown PreviewStylusDown PreviewStylusDown PreviewStylusDown

当触笔位于元素上且触及数字化器时发生。Occurs when the stylus touches the digitizer while it is over this element.

PreviewStylusInAirMove PreviewStylusInAirMove PreviewStylusInAirMove PreviewStylusInAirMove

在触笔掠过元素但并未实际接触数字化器时发生。Occurs when the stylus moves over an element without actually touching the digitizer.

PreviewStylusInRange PreviewStylusInRange PreviewStylusInRange PreviewStylusInRange

在触笔位于此元素上并且触笔与数字化器之间的距离近到足以检测到触笔时发生。Occurs when the stylus is close enough to the digitizer to be detected, while over this element.

PreviewStylusMove PreviewStylusMove PreviewStylusMove PreviewStylusMove

在触笔位于元素上并且移动触笔时发生。Occurs when the stylus moves while over the element. 数字化器在检测触笔时,触笔必须处于移动状态才会引发此事件,否则将改为引发 PreviewStylusInAirMoveThe stylus must move while being detected by the digitizer to raise this event, otherwise, PreviewStylusInAirMove is raised instead.

PreviewStylusOutOfRange PreviewStylusOutOfRange PreviewStylusOutOfRange PreviewStylusOutOfRange

在触笔与数字化仪之间的距离太远以致无法检测到触笔时发生。Occurs when the stylus is too far from the digitizer to be detected.

PreviewStylusSystemGesture PreviewStylusSystemGesture PreviewStylusSystemGesture PreviewStylusSystemGesture

在用户采用某一种触笔笔势时发生。Occurs when a user performs one of several stylus gestures.

PreviewStylusUp PreviewStylusUp PreviewStylusUp PreviewStylusUp

当触笔位于此元素上并且用户将触笔抬离数字化器时发生。Occurs when the user raises the stylus off the digitizer while the stylus is over this element.

PreviewTextInput PreviewTextInput PreviewTextInput PreviewTextInput

在此元素以设备无关模式获取文本时发生。Occurs when this element gets text in a device-independent manner.

PreviewTouchDown PreviewTouchDown PreviewTouchDown PreviewTouchDown

当悬停在此元素上方的手指触摸屏幕时发生。Occurs when a finger touches the screen while the finger is over this element.

PreviewTouchMove PreviewTouchMove PreviewTouchMove PreviewTouchMove

当悬停在此元素上方的手指在屏幕上移动时发生。Occurs when a finger moves on the screen while the finger is over this element.

PreviewTouchUp PreviewTouchUp PreviewTouchUp PreviewTouchUp

当悬停在此元素上方的手指从屏幕上移开时发生。Occurs when a finger is raised off of the screen while the finger is over this element.

QueryContinueDrag QueryContinueDrag QueryContinueDrag QueryContinueDrag

在拖放操作期间键盘或鼠标按钮的状态改变时发生。Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.

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

StylusButtonDown StylusButtonDown StylusButtonDown StylusButtonDown

在指针位于此元素上并且按下触笔按钮时发生。Occurs when the stylus button is pressed while the pointer is over this element.

StylusButtonUp StylusButtonUp StylusButtonUp StylusButtonUp

在指针位于此元素上并且松开触笔按钮时发生。Occurs when the stylus button is released while the pointer is over this element.

StylusDown StylusDown StylusDown StylusDown

在触笔位于此元素上且同时触及数字化器时发生。Occurs when the stylus touches the digitizer while the stylus is over this element.

StylusEnter StylusEnter StylusEnter StylusEnter

在触笔进入此元素的边界时发生。Occurs when the stylus enters the bounds of this element.

StylusInAirMove StylusInAirMove StylusInAirMove StylusInAirMove

在触笔掠过元素但并未实际接触数字化器时发生。Occurs when the stylus moves over an element without actually touching the digitizer.

StylusInRange StylusInRange StylusInRange StylusInRange

在触笔位于此元素上并且触笔与数字化器之间的距离近到足以检测到触笔时发生。Occurs when the stylus is close enough to the digitizer to be detected, while over this element.

StylusLeave StylusLeave StylusLeave StylusLeave

在触笔离开元素的边界时发生。Occurs when the stylus leaves the bounds of the element.

StylusMove StylusMove StylusMove StylusMove

在触笔移到此元素上时发生。Occurs when the stylus moves over this element. 触笔必须在位于数字化器上时移动,才会引发此事件。The stylus must move while on the digitizer to raise this event. 否则将改为引发 StylusInAirMoveOtherwise, StylusInAirMove is raised instead.

StylusOutOfRange StylusOutOfRange StylusOutOfRange StylusOutOfRange

在触笔位于此元素上并且触笔与数字化器之间的距离太远以致无法检测到触笔时发生。Occurs when the stylus is too far from the digitizer to be detected, while over this element.

StylusSystemGesture StylusSystemGesture StylusSystemGesture StylusSystemGesture

在用户采用某一种触笔笔势时发生。Occurs when a user performs one of several stylus gestures.

StylusUp StylusUp StylusUp StylusUp

当触笔位于此元素上并且用户将触笔抬离数字化器时发生。Occurs when the user raises the stylus off the digitizer while it is over this element.

TextInput TextInput TextInput TextInput

在此元素以设备无关模式获取文本时发生。Occurs when this element gets text in a device-independent manner.

TouchDown TouchDown TouchDown TouchDown

当悬停在此元素上方的手指触摸屏幕时发生。Occurs when a finger touches the screen while the finger is over this element.

TouchEnter TouchEnter TouchEnter TouchEnter

在触摸屏输入从此元素边界外部移动到其内部时发生。Occurs when a touch moves from outside to inside the bounds of this element.

TouchLeave TouchLeave TouchLeave TouchLeave

在触摸屏输入从此元素边界内部移动到其外部时发生。Occurs when a touch moves from inside to outside the bounds of this element.

TouchMove TouchMove TouchMove TouchMove

当悬停在此元素上方的手指在屏幕上移动时发生。Occurs when a finger moves on the screen while the finger is over this element.

TouchUp TouchUp TouchUp TouchUp

当悬停在此元素上方的手指从屏幕上移开时发生。Occurs when a finger is raised off of the screen while the finger is over this element.

适用于