UIElement 類別

定義

UIElement 是以 Windows Presentation Foundation (WPF) 項目和基本呈現方式特性為建置基礎之 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 也包含與 WPFWPF 事件模型相關的 Api,包括可以引發來自元素實例之指定路由事件的方法。UIElement also includes APIs 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

另一個相關類別為 ContentElementAnother related class is ContentElement. ContentElement 類別會實作用 UIElement的許多相同成員;這兩個類別之間的差異與它們在整體內容模型中的預期位置有關。The 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 類別的新執行個體。Initializes a new instance of the UIElement class.

欄位

AllowDropProperty

識別 AllowDrop 相依性屬性。Identifies the AllowDrop dependency property.

AreAnyTouchesCapturedProperty

識別 AreAnyTouchesCaptured 相依性屬性。Identifies the AreAnyTouchesCaptured dependency property.

AreAnyTouchesCapturedWithinProperty

識別 AreAnyTouchesCapturedWithin 相依性屬性。Identifies the AreAnyTouchesCapturedWithin dependency property.

AreAnyTouchesDirectlyOverProperty

識別 AreAnyTouchesDirectlyOver 相依性屬性。Identifies the AreAnyTouchesDirectlyOver dependency property.

AreAnyTouchesOverProperty

識別 AreAnyTouchesOver 相依性屬性。Identifies the AreAnyTouchesOver dependency property.

BitmapEffectInputProperty

識別 BitmapEffectInput 相依性屬性。Identifies the BitmapEffectInput dependency property.

BitmapEffectProperty

識別 BitmapEffect 相依性屬性。Identifies the BitmapEffect dependency property.

CacheModeProperty

識別 CacheMode 相依性屬性。Identifies the CacheMode dependency property.

ClipProperty

識別 Clip 相依性屬性。Identifies the Clip dependency property.

ClipToBoundsProperty

識別 ClipToBounds 相依性屬性。Identifies the ClipToBounds dependency property.

DragEnterEvent

識別 DragEnter 路由事件。Identifies the DragEnter routed event.

DragLeaveEvent

識別 DragLeave 路由事件。Identifies the DragLeave routed event.

DragOverEvent

識別 DragOver 路由事件。Identifies the DragOver routed event.

DropEvent

識別 Drop 路由事件。Identifies the Drop routed event.

EffectProperty

識別 Effect 相依性屬性。Identifies the Effect dependency property.

FocusableProperty

識別 Focusable 相依性屬性。Identifies the Focusable dependency property.

GiveFeedbackEvent

識別 GiveFeedback 路由事件。Identifies the GiveFeedback routed event.

GotFocusEvent

識別 GotFocus 路由事件。Identifies the GotFocus routed event.

GotKeyboardFocusEvent

識別 GotKeyboardFocus 路由事件。Identifies the GotKeyboardFocus routed event.

GotMouseCaptureEvent

識別 GotMouseCapture 路由事件。Identifies the GotMouseCapture routed event.

GotStylusCaptureEvent

識別 GotStylusCapture 路由事件。Identifies the GotStylusCapture routed event.

GotTouchCaptureEvent

識別 GotTouchCapture 路由事件。Identifies the GotTouchCapture routed event.

IsEnabledProperty

識別 IsEnabled 相依性屬性。Identifies the IsEnabled dependency property.

IsFocusedProperty

識別 IsFocused 相依性屬性。Identifies the IsFocused dependency property.

IsHitTestVisibleProperty

識別 IsHitTestVisible 相依性屬性。Identifies the IsHitTestVisible dependency property.

IsKeyboardFocusedProperty

識別 IsKeyboardFocused 相依性屬性。Identifies the IsKeyboardFocused dependency property.

IsKeyboardFocusWithinProperty

識別 IsKeyboardFocusWithin 相依性屬性。Identifies the IsKeyboardFocusWithin dependency property.

IsManipulationEnabledProperty

識別 IsManipulationEnabled 相依性屬性。Identifies the IsManipulationEnabled dependency property.

IsMouseCapturedProperty

識別 IsMouseCaptured 相依性屬性。Identifies the IsMouseCaptured dependency property.

IsMouseCaptureWithinProperty

識別 IsMouseCaptureWithin 相依性屬性。Identifies the IsMouseCaptureWithin dependency property.

IsMouseDirectlyOverProperty

識別 IsMouseDirectlyOver 相依性屬性。Identifies the IsMouseDirectlyOver dependency property.

IsMouseOverProperty

識別 IsMouseOver 相依性屬性。Identifies the IsMouseOver dependency property.

IsStylusCapturedProperty

識別 IsStylusCaptured 相依性屬性。Identifies the IsStylusCaptured dependency property.

IsStylusCaptureWithinProperty

識別 IsStylusCaptureWithin 相依性屬性。Identifies the IsStylusCaptureWithin dependency property.

IsStylusDirectlyOverProperty

識別 IsStylusDirectlyOver 相依性屬性。Identifies the IsStylusDirectlyOver dependency property.

IsStylusOverProperty

識別 IsStylusOver 相依性屬性。Identifies the IsStylusOver dependency property.

IsVisibleProperty

識別 IsVisible 相依性屬性。Identifies the IsVisible dependency property.

KeyDownEvent

識別 KeyDown 路由事件。Identifies the KeyDown routed event.

KeyUpEvent

識別 KeyUp 路由事件。Identifies the KeyUp routed event.

LostFocusEvent

識別 LostFocus 路由事件。Identifies the LostFocus routed event.

LostKeyboardFocusEvent

識別 LostKeyboardFocus 路由事件。Identifies the LostKeyboardFocus routed event.

LostMouseCaptureEvent

識別 LostMouseCapture 路由事件。Identifies the LostMouseCapture routed event.

LostStylusCaptureEvent

識別 LostStylusCapture 路由事件。Identifies the LostStylusCapture routed event.

LostTouchCaptureEvent

識別 LostTouchCapture 路由事件。Identifies the LostTouchCapture routed event.

ManipulationBoundaryFeedbackEvent

識別 ManipulationBoundaryFeedback 事件。Identifies the ManipulationBoundaryFeedback event.

ManipulationCompletedEvent

識別 ManipulationCompleted 路由事件。Identifies the ManipulationCompleted routed event.

ManipulationDeltaEvent

識別 ManipulationDelta 路由事件。Identifies the ManipulationDelta routed event.

ManipulationInertiaStartingEvent

識別 ManipulationInertiaStarting 路由事件。Identifies the ManipulationInertiaStarting routed event.

ManipulationStartedEvent

識別 ManipulationStarted 路由事件。Identifies the ManipulationStarted routed event.

ManipulationStartingEvent

識別 ManipulationStarting 路由事件。Identifies the ManipulationStarting routed event.

MouseDownEvent

識別 MouseDown 路由事件。Identifies the MouseDown routed event.

MouseEnterEvent

識別 MouseEnter 路由事件。Identifies the MouseEnter routed event.

MouseLeaveEvent

識別 MouseLeave 路由事件。Identifies the MouseLeave routed event.

MouseLeftButtonDownEvent

識別 MouseLeftButtonDown 路由事件。Identifies the MouseLeftButtonDown routed event.

MouseLeftButtonUpEvent

識別 MouseLeftButtonUp 路由事件。Identifies the MouseLeftButtonUp routed event.

MouseMoveEvent

識別 MouseMove 路由事件。Identifies the MouseMove routed event.

MouseRightButtonDownEvent

識別 MouseRightButtonDown 路由事件。Identifies the MouseRightButtonDown routed event.

MouseRightButtonUpEvent

識別 MouseRightButtonUp 路由事件。Identifies the MouseRightButtonUp routed event.

MouseUpEvent

識別 MouseUp 路由事件。Identifies the MouseUp routed event.

MouseWheelEvent

識別 MouseWheel 路由事件。Identifies the MouseWheel routed event.

OpacityMaskProperty

識別 OpacityMask 相依性屬性。Identifies the OpacityMask dependency property.

OpacityProperty

識別 Opacity 相依性屬性。Identifies the Opacity dependency property.

PreviewDragEnterEvent

識別 PreviewDragEnter 路由事件。Identifies the PreviewDragEnter routed event.

PreviewDragLeaveEvent

識別 PreviewDragLeave 路由事件。Identifies the PreviewDragLeave routed event.

PreviewDragOverEvent

識別 PreviewDragOver 路由事件。Identifies the PreviewDragOver routed event.

PreviewDropEvent

識別 PreviewDrop 路由事件。Identifies the PreviewDrop routed event.

PreviewGiveFeedbackEvent

識別 PreviewGiveFeedback 路由事件。Identifies the PreviewGiveFeedback routed event.

PreviewGotKeyboardFocusEvent

識別 PreviewGotKeyboardFocus 路由事件。Identifies the PreviewGotKeyboardFocus routed event.

PreviewKeyDownEvent

識別 PreviewKeyDown 路由事件。Identifies the PreviewKeyDown routed event.

PreviewKeyUpEvent

識別 PreviewKeyUp 路由事件。Identifies the PreviewKeyUp routed event.

PreviewLostKeyboardFocusEvent

識別 PreviewLostKeyboardFocus 路由事件。Identifies the PreviewLostKeyboardFocus routed event.

PreviewMouseDownEvent

識別 PreviewMouseDown 路由事件。Identifies the PreviewMouseDown routed event.

PreviewMouseLeftButtonDownEvent

識別 PreviewMouseLeftButtonDown 路由事件。Identifies the PreviewMouseLeftButtonDown routed event.

PreviewMouseLeftButtonUpEvent

識別 PreviewMouseLeftButtonUp 路由事件。Identifies the PreviewMouseLeftButtonUp routed event.

PreviewMouseMoveEvent

識別 PreviewMouseMove 路由事件。Identifies the PreviewMouseMove routed event.

PreviewMouseRightButtonDownEvent

識別 PreviewMouseRightButtonDown 路由事件。Identifies the PreviewMouseRightButtonDown routed event.

PreviewMouseRightButtonUpEvent

識別 PreviewMouseRightButtonUp 路由事件。Identifies the PreviewMouseRightButtonUp routed event.

PreviewMouseUpEvent

識別 PreviewMouseUp 路由事件。Identifies the PreviewMouseUp routed event.

PreviewMouseWheelEvent

識別 PreviewMouseWheel 路由事件。Identifies the PreviewMouseWheel routed event.

PreviewQueryContinueDragEvent

識別 PreviewQueryContinueDrag 路由事件。Identifies the PreviewQueryContinueDrag routed event.

PreviewStylusButtonDownEvent

識別 PreviewStylusButtonDown 路由事件。Identifies the PreviewStylusButtonDown routed event.

PreviewStylusButtonUpEvent

識別 PreviewStylusButtonUp 路由事件。Identifies the PreviewStylusButtonUp routed event.

PreviewStylusDownEvent

識別 PreviewStylusDown 路由事件。Identifies the PreviewStylusDown routed event.

PreviewStylusInAirMoveEvent

識別 PreviewStylusInAirMove 路由事件。Identifies the PreviewStylusInAirMove routed event.

PreviewStylusInRangeEvent

識別 PreviewStylusInRange 路由事件。Identifies the PreviewStylusInRange routed event.

PreviewStylusMoveEvent

識別 PreviewStylusMove 路由事件。Identifies the PreviewStylusMove routed event.

PreviewStylusOutOfRangeEvent

識別 PreviewStylusOutOfRange 路由事件。Identifies the PreviewStylusOutOfRange routed event.

PreviewStylusSystemGestureEvent

識別 PreviewStylusSystemGesture 路由事件。Identifies the PreviewStylusSystemGesture routed event.

PreviewStylusUpEvent

識別 PreviewStylusUp 路由事件。Identifies the PreviewStylusUp routed event.

PreviewTextInputEvent

識別 PreviewTextInput 路由事件。Identifies the PreviewTextInput routed event.

PreviewTouchDownEvent

識別 PreviewTouchDown 路由事件。Identifies the PreviewTouchDown routed event.

PreviewTouchMoveEvent

識別 PreviewTouchMove 路由事件。Identifies the PreviewTouchMove routed event.

PreviewTouchUpEvent

識別 PreviewTouchUp 路由事件。Identifies the PreviewTouchUp routed event.

QueryContinueDragEvent

識別 QueryContinueDrag 路由事件。Identifies the QueryContinueDrag routed event.

QueryCursorEvent

識別 QueryCursor 路由事件。Identifies the QueryCursor routed event.

RenderTransformOriginProperty

識別 RenderTransformOrigin 相依性屬性。Identifies the RenderTransformOrigin dependency property.

RenderTransformProperty

識別 RenderTransform 相依性屬性。Identifies the RenderTransform dependency property.

SnapsToDevicePixelsProperty

識別 SnapsToDevicePixels 相依性屬性。Identifies the SnapsToDevicePixels dependency property.

StylusButtonDownEvent

識別 StylusButtonDown 路由事件。Identifies the StylusButtonDown routed event.

StylusButtonUpEvent

識別 StylusButtonUp 路由事件。Identifies the StylusButtonUp routed event.

StylusDownEvent

識別 StylusDown 路由事件。Identifies the StylusDown routed event.

StylusEnterEvent

識別 StylusEnter 路由事件。Identifies the StylusEnter routed event.

StylusInAirMoveEvent

識別 StylusInAirMove 路由事件。Identifies the StylusInAirMove routed event.

StylusInRangeEvent

識別 StylusInRange 路由事件。Identifies the StylusInRange routed event.

StylusLeaveEvent

識別 StylusLeave 路由事件。Identifies the StylusLeave routed event.

StylusMoveEvent

識別 StylusMove 路由事件。Identifies the StylusMove routed event.

StylusOutOfRangeEvent

識別 StylusOutOfRange 路由事件。Identifies the StylusOutOfRange routed event.

StylusSystemGestureEvent

識別 StylusSystemGesture 路由事件。Identifies the StylusSystemGesture routed event.

StylusUpEvent

識別 StylusUp 路由事件。Identifies the StylusUp routed event.

TextInputEvent

識別 TextInput 路由事件。Identifies the TextInput routed event.

TouchDownEvent

識別 TouchDown 路由事件。Identifies the TouchDown routed event.

TouchEnterEvent

識別 TouchEnter 路由事件。Identifies the TouchEnter routed event.

TouchLeaveEvent

識別 TouchLeave 路由事件。Identifies the TouchLeave routed event.

TouchMoveEvent

識別 TouchMove 路由事件。Identifies the TouchMove routed event.

TouchUpEvent

識別 TouchUp 路由事件。Identifies the TouchUp routed event.

UidProperty

識別 Uid 相依性屬性。Identifies the Uid dependency property.

VisibilityProperty

識別 Visibility 相依性屬性。Identifies the Visibility dependency property.

屬性

AllowDrop

取得或設定此元素是否可以當做拖放操作目標的值。Gets or sets a value indicating whether this element can be used as the target of a drag-and-drop operation. 這是相依性屬性。This is a dependency property.

AreAnyTouchesCaptured

取得值,這個值表示是否至少有一個觸控擷取至這個項目。Gets a value that indicates whether at least one touch is captured to this element.

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

取得值,這個值表示是否至少有一個觸控在這個項目上按下。Gets a value that indicates whether at least one touch is pressed over this element.

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

取得或設定直接套用至此元素呈現內容的點陣圖效果。Gets or sets a bitmap effect that applies directly to the rendered content for this element. 這是相依性屬性。This is a dependency property.

BitmapEffectInput

取得或設定直接套用至此元素呈現內容的點陣圖效果輸入來源。Gets or sets an input source for the bitmap effect that applies directly to the rendered content for this element. 這是相依性屬性。This is a dependency property.

CacheMode

取得或設定 UIElement 的快取表示。Gets or sets a cached representation of the UIElement.

Clip

取得或設定用來定義項目內容外框的幾何。Gets or sets the geometry used to define the outline of the contents of an element. 這是相依性屬性。This is a dependency property.

ClipToBounds

取得或設定是否裁剪此元素 (或來自此元素的子元素) 的內容,以符合容器元素大小的值。Gets or sets a value indicating whether to clip the content of this element (or content coming from the child elements of this element) to fit into the size of the containing element. 這是相依性屬性。This is a dependency property.

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

取得包裝此執行個體之 CLRCLR 型別的 DependencyObjectTypeGets the DependencyObjectType that wraps the CLRCLR type of this instance.

(繼承來源 DependencyObject)
DesiredSize

取得這個項目在版面配置處理序的測量傳遞期間所計算的大小。Gets the size that this element computed during the measure pass of the layout process.

Dispatcher

取得與這個 Dispatcher 關聯的 DispatcherObjectGets the Dispatcher this DispatcherObject is associated with.

(繼承來源 DispatcherObject)
Effect

取得或設定要套用至 UIElement 的點陣圖效果。Gets or sets the bitmap effect to apply to the UIElement. 這是相依性屬性。This is a dependency property.

Focusable

取得或設定元素是否能夠接收焦點的值。Gets or sets a value that indicates whether the element can receive focus. 這是相依性屬性。This is a dependency property.

HasAnimatedProperties

取得值,這個值表示此項目是否有任何動畫屬性。Gets a value indicating whether this element has any animated properties.

HasEffectiveKeyboardFocus

取得值,指出 UIElement 是否具有焦點。Gets a value that indicates whether the UIElement has focus.

InputBindings

取得與此元素關聯的輸入繫結集合。Gets the collection of input bindings associated with this element.

IsArrangeValid

取得值,這個值表示在此項目之配置中子項目的計算大小和位置是有效的。Gets a value indicating whether the computed size and position of child elements in this element's layout are valid.

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

取得值,這個值會成為衍生類別中 IsEnabled 的傳回值。Gets a value that becomes the return value of IsEnabled in derived classes.

IsFocused

取得值,決定這個項目是否具有邏輯焦點。Gets a value that determines whether this element has logical focus. 這是相依性屬性。This is a dependency property.

IsHitTestVisible

取得或設定宣告此元素是否可以從其呈現內容的某些部分傳回,作為點擊測試結果的值。Gets or sets a value that declares whether this element can possibly be returned as a hit test result from some portion of its rendered content. 這是相依性屬性。This is a dependency property.

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

取得值,指出這個項目是否具有鍵盤焦點。Gets a value indicating whether this element has keyboard focus. 這是相依性屬性。This is a dependency property.

IsKeyboardFocusWithin

取得值,表示鍵盤焦點是否在項目或其視覺化樹狀結構子項目內的任何位置。Gets a value indicating whether keyboard focus is anywhere within the element or its visual tree child elements. 這是相依性屬性。This is a dependency property.

IsManipulationEnabled

取得或設定值,這個值表示是否在此 UIElement 上啟用操作事件。Gets or sets a value that indicates whether manipulation events are enabled on this UIElement.

IsMeasureValid

取得值,這個值表示配置測量所傳回的目前大小是否有效。Gets a value indicating whether the current size returned by layout measure is valid.

IsMouseCaptured

取得值,指出是否將滑鼠擷取至這個項目。Gets a value indicating whether the mouse is captured to this element. 這是相依性屬性。This is a dependency property.

IsMouseCaptureWithin

取得值,這個值決定滑鼠擷取是由這個項目持有,還是由其視覺化樹狀中的子項目持有。Gets a value that determines whether mouse capture is held by this element or by child elements in its visual tree. 這是相依性屬性。This is a dependency property.

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

取得值,指出滑鼠指標是否在這個項目上方 (包括視覺化樹狀中的子項目)。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

取得值,這個值表示此執行個體目前是否已密封 (唯讀)。Gets a value that indicates whether this instance is currently sealed (read-only).

(繼承來源 DependencyObject)
IsStylusCaptured

取得值,指出這個項目是否擷取手寫筆。Gets a value indicating whether the stylus is captured by this element. 這是相依性屬性。This is a dependency property.

IsStylusCaptureWithin

取得值,這個值決定手寫筆擷取是由這個項目持有,還是由項目範圍及其視覺化樹狀結構中的項目持有。Gets a value that determines whether stylus capture is held by this element, or an element within the element bounds and its visual tree. 這是相依性屬性。This is a dependency property.

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

取得值,指出手寫筆游標是否位在這個項目上方 (包括視覺子項目)。Gets a value indicating whether the stylus cursor is located over this element (including visual child elements). 這是相依性屬性。This is a dependency property.

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

取得或設定套用至整個 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

取得或設定套用至任何 Alpha 色板遮罩 (用來遮住此項目的呈現內容) 時實作 Brush 的不透明度遮罩。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

取得值,這個值可唯一識別此項目。Gets a value that uniquely identifies this element.

RenderSize

取得 (或設定) 這個項目的最終呈現大小。Gets (or sets) the final render size of this element.

RenderTransform

取得或設定影響這個項目呈現位置的轉換資訊。Gets or sets transform information that affects the rendering position of this element. 這是相依性屬性。This is a dependency property.

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

取得或設定值,該值判斷這個項目的呈現在呈現期間是否該使用裝置特定像素的設定。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

取得與這個項目關聯的所有手寫筆外掛程式 (自訂) 物件集合。Gets a collection of all stylus plug-in (customization) objects associated with this element.

TouchesCaptured

取得已擷取至這個項目的所有觸控裝置。Gets all touch devices that are captured to this element.

TouchesCapturedWithin

取得已擷取至這個項目或其視覺化樹狀結構中之任何子項目的所有觸控裝置。Gets all touch devices that are captured to this element or any child elements in its visual tree.

TouchesDirectlyOver

取得在這個項目上停留的所有觸控裝置。Gets all touch devices that are over this element.

TouchesOver

取得在這個項目或其視覺化樹狀結構中之任何子項目上停留的所有觸控裝置。Gets all touch devices that are over this element or any child elements in its visual tree.

Uid

取得或設定這個項目的唯一識別項 (適用於當地語系化)。Gets or sets the unique identifier (for localization) for this element. 這是相依性屬性。This is a dependency property.

Visibility

取得或設定這個項目的 使用者介面 (UI)user interface (UI) 可見性。Gets or sets the 使用者介面 (UI)user interface (UI) visibility of this element. 這是相依性屬性。This is a dependency property.

VisualBitmapEffect

取得或設定 BitmapEffectVisual 值。Gets or sets the BitmapEffect value for the Visual.

(繼承來源 Visual)
VisualBitmapEffectInput

取得或設定 BitmapEffectInputVisual 值。Gets or sets the BitmapEffectInput value for the Visual.

(繼承來源 Visual)
VisualBitmapScalingMode

取得或設定 BitmapScalingModeVisualGets or sets the BitmapScalingMode for the Visual.

(繼承來源 Visual)
VisualCacheMode

取得或設定 Visual 的快取表示。Gets or sets a cached representation of the Visual.

(繼承來源 Visual)
VisualChildrenCount

取得 Visual 的子項目數量。Gets the number of child elements for the Visual.

(繼承來源 Visual)
VisualClearTypeHint

取得或設定 ClearTypeHint,以決定 Visual 中的 ClearType 呈現方式。Gets or sets the ClearTypeHint that determines how ClearType is rendered in the Visual.

(繼承來源 Visual)
VisualClip

取得或設定 Visual 的裁剪區域做為 Geometry 值。Gets or sets the clip region of the Visual as a Geometry value.

(繼承來源 Visual)
VisualEdgeMode

取得或設定 Visual 的邊緣模式做為 EdgeMode 值。Gets or sets the edge mode of the Visual as an EdgeMode value.

(繼承來源 Visual)
VisualEffect

取得或設定要套用至 Visual 的點陣圖效果。Gets or sets the bitmap effect to apply to the Visual.

(繼承來源 Visual)
VisualOffset

取得或設定視覺物件的位移值。Gets or sets the offset value of the visual object.

(繼承來源 Visual)
VisualOpacity

取得或設定 Visual 的不透明度。Gets or sets the opacity of the Visual.

(繼承來源 Visual)
VisualOpacityMask

取得或設定 Brush 值,這個值表示 Visual 的不透明遮罩。Gets or sets the Brush value that represents the opacity mask of the Visual.

(繼承來源 Visual)
VisualParent

取得視覺物件的視覺化樹狀結構父物件。Gets the visual tree parent of the visual object.

(繼承來源 Visual)
VisualScrollableAreaClip

取得或設定 Visual 的可捲動裁剪區域。Gets or sets a clipped scrollable area for the Visual.

(繼承來源 Visual)
VisualTextHintingMode

取得或設定 VisualTextHintingModeGets or sets the TextHintingMode of the Visual.

(繼承來源 Visual)
VisualTextRenderingMode

取得或設定 VisualTextRenderingModeGets or sets the TextRenderingMode of the Visual.

(繼承來源 Visual)
VisualTransform

取得或設定 TransformVisual 值。Gets or sets the Transform value for the Visual.

(繼承來源 Visual)
VisualXSnappingGuidelines

取得或設定 X 座標 (垂直) 導線集合。Gets or sets the x-coordinate (vertical) guideline collection.

(繼承來源 Visual)
VisualYSnappingGuidelines

取得或設定 Y 座標 (水平) 導線集合。Gets or sets the y-coordinate (horizontal) guideline collection.

(繼承來源 Visual)

方法

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)

加入所指定路由事件的路由事件處理常式,會將此處理常式加入目前項目的處理常式集合中。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)

針對目前的 EventRoute 事件處理常式集合,將處理常式加入至指定的 UIElementAdds handlers to the specified EventRoute for the current UIElement event handler collection.

AddVisualChild(Visual)

定義兩個視覺項目之間的父-子關係。Defines the parent-child relationship between two visuals.

(繼承來源 Visual)
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)

將動畫套用至這個項目上所指定的相依性屬性,且可以指定此屬性已經有執行中的動畫時會發生哪種情況。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)

放置子項目,並且判斷 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)

定義 WPF 核心層級排列版面配置定義的範本。Defines the template for WPF core-level arrange layout definition.

BeginAnimation(DependencyProperty, AnimationTimeline)

針對這個項目之指定的動畫屬性,開始播放動畫。Starts an animation for a specified animated property on this element.

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

嘗試強制將滑鼠的捕捉給這個項目。Attempts to force capture of the mouse to this element.

CaptureStylus()

嘗試強制將手寫筆的捕捉給這個項目。Attempts to force capture of the stylus to this element.

CaptureTouch(TouchDevice)

嘗試強制將觸控擷取至這個項目。Attempts to force capture of a touch to this element.

CheckAccess()

判斷呼叫的執行是否可以存取這個 DispatcherObjectDetermines whether the calling thread has access to this DispatcherObject.

(繼承來源 DispatcherObject)
ClearValue(DependencyProperty)

清除屬性的區域數值。Clears the local value of a property. 要清除的屬性是由 DependencyProperty 識別項所指定。The property to be cleared is specified by a DependencyProperty identifier.

(繼承來源 DependencyObject)
ClearValue(DependencyPropertyKey)

清除唯讀屬性的區域數值。Clears the local value of a read-only property. 要清除的屬性是由 DependencyPropertyKey 所指定。The property to be cleared is specified by a DependencyPropertyKey.

(繼承來源 DependencyObject)
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.

(繼承來源 DependencyObject)
Equals(Object)

判斷提供的 DependencyObject 和目前的 DependencyObject 是否相等。Determines whether a provided DependencyObject is equivalent to the current DependencyObject.

(繼承來源 DependencyObject)
FindCommonVisualAncestor(DependencyObject)

傳回兩個視覺物件的共同祖系。Returns the common ancestor of two visual objects.

(繼承來源 Visual)
Focus()

嘗試將焦點設定至此項目。Attempts to set focus to this element.

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

取得這個 DependencyObject 的雜湊碼。Gets a hash code for this DependencyObject.

(繼承來源 DependencyObject)
GetLayoutClip(Size)

如果 ClipToBounds 設定為 true,則傳回表示所要裁剪之區域的替代裁剪幾何。Returns an alternative clipping geometry that represents the region that would be clipped if ClipToBounds were set to true.

GetLocalValueEnumerator()

建立特定的列舉值,以判斷哪些相依性屬性在此 DependencyObject 上具有本機設定的值。Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject.

(繼承來源 DependencyObject)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
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)

傳回 DependencyObject 的這個執行個體上之相依性屬性的目前有效值。Returns the current effective value of a dependency property on this instance of a DependencyObject.

(繼承來源 DependencyObject)
GetVisualChild(Int32)

傳回父 Visual 中所指定的 VisualCollectionReturns the specified Visual in the parent VisualCollection.

(繼承來源 Visual)
HitTestCore(GeometryHitTestParameters)

實作 HitTestCore(GeometryHitTestParameters)以提供基底項目點擊測試行為 (傳回 GeometryHitTestResult)。Implements HitTestCore(GeometryHitTestParameters) to supply base element hit testing behavior (returning GeometryHitTestResult).

HitTestCore(PointHitTestParameters)

實作 HitTestCore(PointHitTestParameters)以提供基底項目點擊測試行為 (傳回 HitTestResult)。Implements HitTestCore(PointHitTestParameters) to supply base element hit testing behavior (returning HitTestResult).

InputHitTest(Point)

在目前項目範圍中傳回的輸入項目,輸入項目位在相對於目前項目原點的指定座標。Returns the input element within the current element that is at the specified coordinates, relative to the current element's origin.

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

使項目的測量狀態 (配置) 失效。Invalidates the measurement state (layout) for the element.

InvalidateProperty(DependencyProperty)

重新評估指定相依性屬性的有效值。Re-evaluates the effective value for the specified dependency property.

(繼承來源 DependencyObject)
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)

判斷視覺物件是否為子系視覺物件的祖系。Determines whether the visual object is an ancestor of the descendant visual object.

(繼承來源 Visual)
IsDescendantOf(DependencyObject)

判斷視覺物件是否為祖系視覺物件的子系。Determines whether the visual object is a descendant of the ancestor visual object.

(繼承來源 Visual)
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)

任一項目在衍生類別中被覆寫時,會提供可以正確調整該項目的度量邏輯,並且也會同時考慮所有子項目內容的大小。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()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
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)

當叫用對這個項目有意義的便捷鍵 (Access Key) 時,為其提供類別處理。Provides class handling for when an access key that is meaningful for this element is invoked.

OnChildDesiredSizeChanged(UIElement)

會在調整子項目的大小時支援配置行為。Supports layout behavior when a child element is resized.

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)

當轉譯此 View 的 DPI 變更時呼叫。Called when the DPI at which this View is rendered changes.

(繼承來源 Visual)
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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

使用所提供的事件資料引發 GotFocus 路由事件。Raises the GotFocus routed event by using the event data provided.

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)

當未處理的 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)

當未處理的 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)

提供 GotTouchCapture 路由事件的類別處理,而這個事件會在擷取到對此項目的觸控時發生。Provides class handling for the GotTouchCapture routed event that occurs when a touch is captured to this element.

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)

在此項目引發 IsKeyboardFocusWithinChanged 事件前叫用。Invoked just before the IsKeyboardFocusWithinChanged event is raised by this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

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)

當這個項目上引發未處理的 IsMouseCaptureWithinChanged 事件時叫用。Invoked when an unhandled IsMouseCaptureWithinChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

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)

當這個項目上引發未處理的 IsStylusCapturedChanged 事件時叫用。Invoked when an unhandled IsStylusCapturedChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

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)

當這個項目上引發未處理的 IsStylusDirectlyOverChanged 事件時叫用。Invoked when an unhandled IsStylusDirectlyOverChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

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)

當未處理的 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)

使用所提供的事件資料引發 LostFocus 路由事件。Raises the LostFocus routed event by using the event data that is provided.

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)

當未處理的 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)

當未處理的 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)

提供 LostTouchCapture 路由事件的類別處理,而這個事件會在此項目失去觸控擷取時發生。Provides class handling for the LostTouchCapture routed event that occurs when this element loses a touch capture.

OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs)

ManipulationBoundaryFeedback 事件發生時呼叫。Called when the ManipulationBoundaryFeedback event occurs.

OnManipulationCompleted(ManipulationCompletedEventArgs)

ManipulationCompleted 事件發生時呼叫。Called when the ManipulationCompleted event occurs.

OnManipulationDelta(ManipulationDeltaEventArgs)

ManipulationDelta 事件發生時呼叫。Called when the ManipulationDelta event occurs.

OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs)

ManipulationInertiaStarting 事件發生時呼叫。Called when the ManipulationInertiaStarting event occurs.

OnManipulationStarted(ManipulationStartedEventArgs)

ManipulationStarted 事件發生時呼叫。Called when the ManipulationStarted event occurs.

OnManipulationStarting(ManipulationStartingEventArgs)

提供當第一次建立操作處理器時,所發生 ManipulationStarting 路由事件的類別處理。Provides class handling for the ManipulationStarting routed event that occurs when the manipulation processor is first created.

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)

當這個項目上引發未處理的 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)

當這個項目上引發未處理的 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)

當這個項目上引發未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

提供 PreviewTouchDown 路由事件的類別處理,而這個事件會在觸控按下此項目時發生。Provides class handling for the PreviewTouchDown routed event that occurs when a touch presses this element.

OnPreviewTouchMove(TouchEventArgs)

提供 PreviewTouchMove 路由事件的類別處理,而這個事件會在觸控尚處於此項目內並有所移動時發生。Provides class handling for the PreviewTouchMove routed event that occurs when a touch moves while inside this element.

OnPreviewTouchUp(TouchEventArgs)

提供 PreviewTouchUp 路由事件的類別處理,而這個事件會在觸控於此項目內放開時發生。Provides class handling for the PreviewTouchUp routed event that occurs when a touch is released inside this element.

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.

(繼承來源 DependencyObject)
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)

當未處理的 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)

在衍生類別中覆寫時,參與由配置系統導向的呈現作業。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)

在衍生類別中覆寫時,參與由配置系統導向的呈現作業。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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當這個項目引發未處理的 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)

當未處理的 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)

當未處理的 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)

當這個項目引發未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

當未處理的 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)

提供 TouchDown 路由事件的類別處理,而這個事件會在觸控按下此項目內部時發生。Provides class handling for the TouchDown routed event that occurs when a touch presses inside this element.

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)

提供 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)

提供 TouchMove 路由事件的類別處理,而這個事件會在觸控尚處於此項目內並有所移動時發生。Provides class handling for the TouchMove routed event that occurs when a touch moves while inside this element.

OnTouchUp(TouchEventArgs)

提供 TouchUp 路由事件的類別處理,而這個事件會在觸控於此項目內放開時發生。Provides class handling for the TouchUp routed event that occurs when a touch is released inside this element.

OnVisualChildrenChanged(DependencyObject, DependencyObject)

當視覺物件的 VisualCollection 已修改時呼叫。Called when the VisualCollection of the visual object is modified.

(繼承來源 Visual)
OnVisualParentChanged(DependencyObject)

當這個 UIElement 的父項目報告其基礎視覺化父項目的變更時叫用。Invoked when the parent element of this UIElement reports a change to its underlying visual parent.

PointFromScreen(Point)

將螢幕座標中的 Point 轉換為 Point,表示 Visual 的目前座標系統。Converts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual.

(繼承來源 Visual)
PointToScreen(Point)

將表示 Point 之目前座標系統的 Visual 轉換為螢幕座標中的 PointConverts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates.

(繼承來源 Visual)
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)

引發特定路由事件。Raises a specific routed event. 要引發的 RoutedEvent 是在所提供的 RoutedEventArgs 執行個體內識別 (作為該事件資料的 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)

傳回相依性屬性的區域值 (如果存在)。Returns the local value of a dependency property, if it exists.

(繼承來源 DependencyObject)
ReleaseAllTouchCaptures()

從這個項目釋放所有擷取到的觸控裝置。Releases all captured touch devices from this element.

ReleaseMouseCapture()

如果這個項目保有滑鼠捕捉,則釋放捕捉。Releases the mouse capture, if this element held the capture.

ReleaseStylusCapture()

如果這個項目保有手寫筆裝置捕捉,則釋放捕捉。Releases the stylus device capture, if this element held the capture.

ReleaseTouchCapture(TouchDevice)

嘗試從這個項目中釋放指定的觸控裝置。Attempts to release the specified touch device from this element.

RemoveHandler(RoutedEvent, Delegate)

從這個項目中移除指定的路由事件處理常式。Removes the specified routed event handler from this element.

RemoveVisualChild(Visual)

移除兩個視覺物件之間的父-子關係。Removes the parent-child relationship between two visuals.

(繼承來源 Visual)
SetCurrentValue(DependencyProperty, Object)

設定相依性屬性的值,而不需要變更其值來源。Sets the value of a dependency property without changing its value source.

(繼承來源 DependencyObject)
SetValue(DependencyProperty, Object)

設定相依性屬性的區域值 (由相依性屬性的識別碼所指定)。Sets the local value of a dependency property, specified by its dependency property identifier.

(繼承來源 DependencyObject)
SetValue(DependencyPropertyKey, Object)

設定唯讀相依性屬性的區域數值 (由相依性屬性的 DependencyPropertyKey 識別項所指定)。Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.

(繼承來源 DependencyObject)
ShouldSerializeCommandBindings()

傳回序列化 (Serialization) 處理序是否應該在這個類別的執行個體上,將 CommandBindings 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the CommandBindings property on instances of this class.

ShouldSerializeInputBindings()

傳回序列化 (Serialization) 處理序是否應該在這個類別的執行個體上,將 InputBindings 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the InputBindings property on instances of this class.

ShouldSerializeProperty(DependencyProperty)

傳回值,這個值表示序列化程序是否應該序列化所提供相依性屬性的值。Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.

(繼承來源 DependencyObject)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
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.

(繼承來源 Visual)
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.

(繼承來源 Visual)
TransformToDescendant(Visual)

傳回轉換,這個轉換可用來將 Visual 的座標轉換為指定的視覺物件子系。Returns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant.

(繼承來源 Visual)
TransformToVisual(Visual)

傳回轉換,這個轉換可用來將 Visual 的座標轉換為指定的視覺物件。Returns a transform that can be used to transform coordinates from the Visual to the specified visual object.

(繼承來源 Visual)
TranslatePoint(Point, UIElement)

將相對於這個項目的點轉換成相對於指定項目的座標。Translates a point relative to this element to coordinates that are relative to the specified element.

UpdateLayout()

確認這個項目的所有視覺化子項目都已正確為配置而更新。Ensures that all visual child elements of this element are properly updated for layout.

VerifyAccess()

請強制執行可以存取這個 DispatcherObject 的呼叫執行緒。Enforces that the calling thread has access to this DispatcherObject.

(繼承來源 DispatcherObject)

事件

DragEnter

輸入系統報告其下以此項目作為拖曳目標的拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the drag target.

DragLeave

輸入系統報告其下以此項目作為拖曳來源的拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the drag origin.

DragOver

在輸入系統回報以此項目作為可能置放目標的基礎拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the potential drop target.

Drop

輸入系統報告其下以這個項目作為置放目標的置放事件時發生。Occurs when the input system reports an underlying drop event with this element as the drop target.

FocusableChanged

發生於 Focusable 屬性的值變更時。Occurs when the value of the Focusable property changes.

GiveFeedback

輸入系統報告其下牽涉此元素的拖放事件時發生。Occurs when the input system reports an underlying drag-and-drop event that involves this element.

GotFocus

此元素取得邏輯焦點時發生。Occurs when this element gets logical focus.

GotKeyboardFocus

鍵盤以此元素為焦點時發生。Occurs when the keyboard is focused on this element.

GotMouseCapture

此元素擷取滑鼠時發生。Occurs when this element captures the mouse.

GotStylusCapture

此元素擷取手寫筆時發生。Occurs when this element captures the stylus.

GotTouchCapture

當觸控擷取至這個項目時發生。Occurs when a touch is captured to this element.

IsEnabledChanged

當這個項目的 IsEnabled 屬性值變更時發生。Occurs when the value of the IsEnabled property on this element changes.

IsHitTestVisibleChanged

當這個項目的 IsHitTestVisible 相依性屬性值變更時發生。Occurs when the value of the IsHitTestVisible dependency property changes on this element.

IsKeyboardFocusedChanged

當這個項目的 IsKeyboardFocused 屬性值變更時發生。Occurs when the value of the IsKeyboardFocused property changes on this element.

IsKeyboardFocusWithinChanged

當這個項目的 IsKeyboardFocusWithin 屬性值變更時發生。Occurs when the value of the IsKeyboardFocusWithin property changes on this element.

IsMouseCapturedChanged

當這個項目的 IsMouseCaptured 屬性值變更時發生。Occurs when the value of the IsMouseCaptured property changes on this element.

IsMouseCaptureWithinChanged

當這個項目的 IsMouseCaptureWithinProperty 值變更時發生。Occurs when the value of the IsMouseCaptureWithinProperty changes on this element.

IsMouseDirectlyOverChanged

當這個項目的 IsMouseDirectlyOver 屬性值變更時發生。Occurs when the value of the IsMouseDirectlyOver property changes on this element.

IsStylusCapturedChanged

當這個項目的 IsStylusCaptured 屬性值變更時發生。Occurs when the value of the IsStylusCaptured property changes on this element.

IsStylusCaptureWithinChanged

當這個項目的 IsStylusCaptureWithin 屬性值變更時發生。Occurs when the value of the IsStylusCaptureWithin property changes on this element.

IsStylusDirectlyOverChanged

當這個項目的 IsStylusDirectlyOver 屬性值變更時發生。Occurs when the value of the IsStylusDirectlyOver property changes on this element.

IsVisibleChanged

當這個項目的 IsVisible 屬性值變更時發生。Occurs when the value of the IsVisible property changes on this element.

KeyDown

焦點在這個項目上方且按下按鍵時發生。Occurs when a key is pressed while focus is on this element.

KeyUp

焦點在這個項目上方且放開按鍵時發生。Occurs when a key is released while focus is on this element.

LayoutUpdated

當目前 Dispatcher 的數個關聯視覺化項目的配置變更時發生。Occurs when the layout of the various visual elements associated with the current Dispatcher changes.

LostFocus

此元素失去邏輯焦點時發生。Occurs when this element loses logical focus.

LostKeyboardFocus

鍵盤不再以此項目為焦點時發生。Occurs when the keyboard is no longer focused on this element,.

LostMouseCapture

此元素失去滑鼠擷取時發生。Occurs when this element loses mouse capture.

LostStylusCapture

此元素失去手寫筆擷取時發生。Occurs when this element loses stylus capture.

LostTouchCapture

當這個項目失去觸控擷取時發生。Occurs when this element loses a touch capture.

ManipulationBoundaryFeedback

當操作遇到界限時發生。Occurs when the manipulation encounters a boundary.

ManipulationCompleted

當對 UIElement 物件進行的操作和慣性完成時發生。Occurs when a manipulation and inertia on the UIElement object is complete.

ManipulationDelta

輸入裝置在操作期間變更位置時發生。Occurs when the input device changes position during a manipulation.

ManipulationInertiaStarting

當輸入裝置在操作期間失去和 UIElement 物件的通訊以及慣性開始時發生。Occurs when the input device loses contact with the UIElement object during a manipulation and inertia begins.

ManipulationStarted

當輸入裝置開始對 UIElement 物件進行操作時發生。Occurs when an input device begins a manipulation on the UIElement object.

ManipulationStarting

發生於第一次建立操作處理器時。Occurs when the manipulation processor is first created.

MouseDown

指標在此元素上方且按下任何滑鼠按鈕時發生。Occurs when any mouse button is pressed while the pointer is over this element.

MouseEnter

滑鼠指標進入此元素的邊界時發生。Occurs when the mouse pointer enters the bounds of this element.

MouseLeave

滑鼠指標離開此元素的邊界時發生。Occurs when the mouse pointer leaves the bounds of this element.

MouseLeftButtonDown

滑鼠指標在此元素上方且按下滑鼠左按鈕時發生。Occurs when the left mouse button is pressed while the mouse pointer is over this element.

MouseLeftButtonUp

滑鼠指標在此元素上方且放開滑鼠左按鈕時發生。Occurs when the left mouse button is released while the mouse pointer is over this element.

MouseMove

滑鼠指標在此元素上方移動時發生。Occurs when the mouse pointer moves while over this element.

MouseRightButtonDown

滑鼠指標在此元素上方且按下滑鼠右按鈕時發生。Occurs when the right mouse button is pressed while the mouse pointer is over this element.

MouseRightButtonUp

滑鼠指標在此元素上方且放開滑鼠右按鈕時發生。Occurs when the right mouse button is released while the mouse pointer is over this element.

MouseUp

在此元素上方放開任何滑鼠按鈕時發生。Occurs when any mouse button is released over this element.

MouseWheel

滑鼠指標在此元素上方且使用者滾動滑鼠滾輪時發生。Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.

PreviewDragEnter

輸入系統報告其下以此項目作為拖曳目標的拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the drag target.

PreviewDragLeave

輸入系統報告其下以此項目作為拖曳來源的拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the drag origin.

PreviewDragOver

在輸入系統回報以此項目作為可能置放目標的基礎拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the potential drop target.

PreviewDrop

輸入系統報告其下以這個項目作為置放目標的置放事件時發生。Occurs when the input system reports an underlying drop event with this element as the drop target.

PreviewGiveFeedback

拖放操作開始時發生。Occurs when a drag-and-drop operation is started.

PreviewGotKeyboardFocus

鍵盤以此元素為焦點時發生。Occurs when the keyboard is focused on this element.

PreviewKeyDown

焦點在這個項目上方且按下按鍵時發生。Occurs when a key is pressed while focus is on this element.

PreviewKeyUp

焦點在這個項目上方且放開按鍵時發生。Occurs when a key is released while focus is on this element.

PreviewLostKeyboardFocus

鍵盤不再以此元素為焦點時發生。Occurs when the keyboard is no longer focused on this element.

PreviewMouseDown

指標在此元素上方且按下任何滑鼠按鈕時發生。Occurs when any mouse button is pressed while the pointer is over this element.

PreviewMouseLeftButtonDown

滑鼠指標在此元素上方且按下滑鼠左按鈕時發生。Occurs when the left mouse button is pressed while the mouse pointer is over this element.

PreviewMouseLeftButtonUp

滑鼠指標在此元素上方且放開滑鼠左按鈕時發生。Occurs when the left mouse button is released while the mouse pointer is over this element.

PreviewMouseMove

滑鼠指標在此元素上方且移動滑鼠指標時發生。Occurs when the mouse pointer moves while the mouse pointer is over this element.

PreviewMouseRightButtonDown

滑鼠指標在此元素上方且按下滑鼠右按鈕時發生。Occurs when the right mouse button is pressed while the mouse pointer is over this element.

PreviewMouseRightButtonUp

滑鼠指標在此元素上方且放開滑鼠右按鈕時發生。Occurs when the right mouse button is released while the mouse pointer is over this element.

PreviewMouseUp

滑鼠指標在此元素上方且放開任何滑鼠按鈕時發生。Occurs when any mouse button is released while the mouse pointer is over this element.

PreviewMouseWheel

滑鼠指標在此元素上方且使用者滾動滑鼠滾輪時發生。Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.

PreviewQueryContinueDrag

拖放操作期間,鍵盤或滑鼠按鈕狀態變更時發生。Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.

PreviewStylusButtonDown

手寫筆指標在此元素上方且按下手寫筆按鈕時發生。Occurs when the stylus button is pressed while the pointer is over this element.

PreviewStylusButtonUp

手寫筆指標在此元素上方且放開手寫筆按鈕時發生。Occurs when the stylus button is released while the pointer is over this element.

PreviewStylusDown

手寫筆在此項目上方且碰觸數位板時發生。Occurs when the stylus touches the digitizer while it is over this element.

PreviewStylusInAirMove

手寫筆在項目上方移動,但沒有真正碰觸數位板時發生。Occurs when the stylus moves over an element without actually touching the digitizer.

PreviewStylusInRange

手寫筆在此項目上方,且夠靠近數位板而被偵測到時發生。Occurs when the stylus is close enough to the digitizer to be detected, while over this element.

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

手寫筆遠離數位板而無法被偵測到時發生。Occurs when the stylus is too far from the digitizer to be detected.

PreviewStylusSystemGesture

使用者執行其中一種手寫筆筆勢時發生。Occurs when a user performs one of several stylus gestures.

PreviewStylusUp

手寫筆在此項目上方,且使用者將手寫筆舉起離開數位板時發生。Occurs when the user raises the stylus off the digitizer while the stylus is over this element.

PreviewTextInput

此元素以一種與裝置無關的方式取得文字時發生。Occurs when this element gets text in a device-independent manner.

PreviewTouchDown

手指在這個項目上方且在螢幕上觸控時發生。Occurs when a finger touches the screen while the finger is over this element.

PreviewTouchMove

手指在這個項目上方且在螢幕上移動時發生。Occurs when a finger moves on the screen while the finger is over this element.

PreviewTouchUp

手指在這個項目上方且離開螢幕時發生。Occurs when a finger is raised off of the screen while the finger is over this element.

QueryContinueDrag

拖放操作期間,鍵盤或滑鼠按鈕狀態變更時發生。Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.

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

手寫筆指標在此元素上方且按下手寫筆按鈕時發生。Occurs when the stylus button is pressed while the pointer is over this element.

StylusButtonUp

手寫筆指標在此元素上方且放開手寫筆按鈕時發生。Occurs when the stylus button is released while the pointer is over this element.

StylusDown

手寫筆在此項目上方且碰觸數位板時發生。Occurs when the stylus touches the digitizer while the stylus is over this element.

StylusEnter

手寫筆進入此元素的邊界時發生。Occurs when the stylus enters the bounds of this element.

StylusInAirMove

手寫筆在項目上方移動,但沒有真正碰觸數位板時發生。Occurs when the stylus moves over an element without actually touching the digitizer.

StylusInRange

手寫筆在此項目上方,且夠靠近數位板而被偵測到時發生。Occurs when the stylus is close enough to the digitizer to be detected, while over this element.

StylusLeave

手寫筆離開元素的邊界時發生。Occurs when the stylus leaves the bounds of the element.

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

手寫筆在此項目上方,且遠離數位板而無法被偵測到時發生。Occurs when the stylus is too far from the digitizer to be detected, while over this element.

StylusSystemGesture

使用者執行其中一種手寫筆筆勢時發生。Occurs when a user performs one of several stylus gestures.

StylusUp

手寫筆在此項目上方,且使用者將手寫筆舉起離開數位板時發生。Occurs when the user raises the stylus off the digitizer while it is over this element.

TextInput

此元素以一種與裝置無關的方式取得文字時發生。Occurs when this element gets text in a device-independent manner.

TouchDown

手指在這個項目上方且在螢幕上觸控時發生。Occurs when a finger touches the screen while the finger is over this element.

TouchEnter

當觸控從這個項目的界限外部移至內部時發生。Occurs when a touch moves from outside to inside the bounds of this element.

TouchLeave

當觸控從這個項目的界限內部移至外部時發生。Occurs when a touch moves from inside to outside the bounds of this element.

TouchMove

手指在這個項目上方且在螢幕上移動時發生。Occurs when a finger moves on the screen while the finger is over this element.

TouchUp

手指在這個項目上方且離開螢幕時發生。Occurs when a finger is raised off of the screen while the finger is over this element.

適用於