# Ellipse 類別

## 定義

``public ref class Ellipse sealed : System::Windows::Shapes::Shape``
``public sealed class Ellipse : System.Windows.Shapes.Shape``
``````type Ellipse = class
inherit Shape``````
``````Public NotInheritable Class Ellipse
Inherits Shape``````

## 範例

``````
myEllipse = gcnew Ellipse();
myEllipse->Stroke = Brushes::Black;
myEllipse->Fill = Brushes::DarkBlue;
myEllipse->HorizontalAlignment = HorizontalAlignment::Left;
myEllipse->VerticalAlignment = VerticalAlignment::Center;
myEllipse->Width = 50;
myEllipse->Height = 75;
``````
``````
myEllipse = new Ellipse();
myEllipse.Stroke = System.Windows.Media.Brushes.Black;
myEllipse.Fill = System.Windows.Media.Brushes.DarkBlue;
myEllipse.HorizontalAlignment = HorizontalAlignment.Left;
myEllipse.VerticalAlignment = VerticalAlignment.Center;
myEllipse.Width = 50;
myEllipse.Height = 75;
``````
``````
Dim myEllipse As New Ellipse()
myEllipse.Stroke = Brushes.Black
myEllipse.Fill = Brushes.DarkBlue
myEllipse.HorizontalAlignment = HorizontalAlignment.Left
myEllipse.VerticalAlignment = VerticalAlignment.Center
myEllipse.Width = 50
myEllipse.Height = 75
``````

## 建構函式

 初始化 Ellipse 類別的新執行個體。Initializes a new instance of the Ellipse class.

## 方法

 加入所指定路由事件的路由事件處理常式，會將此處理常式加入目前項目的處理常式集合中。Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. (繼承來源 UIElement) 加入所指定路由事件的路由事件處理常式，會將此處理常式加入目前項目的處理常式集合中。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. (繼承來源 UIElement) 將所提供的物件加入至此項目的邏輯樹狀結構。Adds the provided object to the logical tree of this element. (繼承來源 FrameworkElement) 針對目前的 EventRoute 事件處理常式集合，將處理常式加入至指定的 UIElement。Adds handlers to the specified EventRoute for the current UIElement event handler collection. (繼承來源 UIElement) 定義兩個視覺項目之間的父-子關係。Defines the parent-child relationship between two visuals. (繼承來源 Visual) 將動畫套用至這個項目上所指定的相依性屬性。Applies an animation to a specified dependency property on this element. 任何現有動畫都會停止並取代為新的動畫。Any existing animations are stopped and replaced with the new animation. (繼承來源 UIElement) 將動畫套用至這個項目上所指定的相依性屬性，且可以指定此屬性已經有執行中的動畫時會發生哪種情況。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. (繼承來源 UIElement) 如有必要，則建置目前範本的視覺化樹狀結構，並傳回值，指出此呼叫是否已重建視覺化樹狀結構。Builds the current template's visual tree if necessary, and returns a value that indicates whether the visual tree was rebuilt by this call. (繼承來源 FrameworkElement) 放置子項目，並且判斷 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. (繼承來源 UIElement) 實作 ArrangeCore(Rect) (在 UIElement 內定義為 Virtual)，並密封實作。Implements ArrangeCore(Rect) (defined as virtual in UIElement) and seals the implementation. (繼承來源 FrameworkElement) 排列 Shape，方法是評估它的 RenderedGeometry 和 Stretch 屬性。Arranges a Shape by evaluating its RenderedGeometry and Stretch properties. (繼承來源 Shape) 針對這個項目之指定的動畫屬性，開始播放動畫。Starts an animation for a specified animated property on this element. (繼承來源 UIElement) 針對此項目上指定的動畫屬性啟動特定動畫，且可以選擇指定如果屬性已經有執行中的動畫時會發生何種情況。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. (繼承來源 UIElement) 啟動這個項目的初始化處理序 (Process)。Starts the initialization process for this element. (繼承來源 FrameworkElement) 開始提供之腳本中包含的動作順序。Begins the sequence of actions that are contained in the provided storyboard. (繼承來源 FrameworkElement) 使用若屬性已經顯示動畫時應發生之情形的指定選項，開始提供之腳本中包含的動作順序。Begins the sequence of actions contained in the provided storyboard, with options specified for what should happen if the property is already animated. (繼承來源 FrameworkElement) 使用控制啟動後之動畫的指定狀態，開始提供之腳本中包含的動作順序。Begins the sequence of actions contained in the provided storyboard, with specified state for control of the animation after it is started. (繼承來源 FrameworkElement) 在內含此項目的任何可捲動區域內，嘗試將此項目帶入檢視。Attempts to bring this element into view, within any scrollable regions it is contained within. (繼承來源 FrameworkElement) 在內含此項目的任何可捲動區域內，嘗試將此項目所提供的區域大小帶入檢視。Attempts to bring the provided region size of this element into view, within any scrollable regions it is contained within. (繼承來源 FrameworkElement) 嘗試強制將滑鼠的捕捉給這個項目。Attempts to force capture of the mouse to this element. (繼承來源 UIElement) 嘗試強制將手寫筆的捕捉給這個項目。Attempts to force capture of the stylus to this element. (繼承來源 UIElement) 嘗試強制將觸控擷取至這個項目。Attempts to force capture of a touch to this element. (繼承來源 UIElement) 判斷呼叫的執行是否可以存取這個 DispatcherObject。Determines whether the calling thread has access to this DispatcherObject. (繼承來源 DispatcherObject) 清除屬性的區域數值。Clears the local value of a property. 要清除的屬性是由 DependencyProperty 識別項所指定。The property to be cleared is specified by a DependencyProperty identifier. (繼承來源 DependencyObject) 清除唯讀屬性的區域數值。Clears the local value of a read-only property. 要清除的屬性是由 DependencyPropertyKey 所指定。The property to be cleared is specified by a DependencyPropertyKey. (繼承來源 DependencyObject) 強制轉型所指定相依性屬性的值。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) 表示項目的初始設定程序已完成。Indicates that the initialization process for the element is complete. (繼承來源 FrameworkElement) 判斷提供的 DependencyObject 和目前的 DependencyObject 是否相等。Determines whether a provided DependencyObject is equivalent to the current DependencyObject. (繼承來源 DependencyObject) 傳回兩個視覺物件的共同祖系。Returns the common ancestor of two visual objects. (繼承來源 Visual) 尋找具有所提供之識別項名稱的項目。Finds an element that has the provided identifier name. (繼承來源 FrameworkElement) 以指定的索引鍵搜尋資源，如果找不到要求的資源時會擲回例外狀況。Searches for a resource with the specified key, and throws an exception if the requested resource is not found. (繼承來源 FrameworkElement) 嘗試將焦點設定至此項目。Attempts to set focus to this element. (繼承來源 UIElement) 傳回這個項目上指定屬性的基底屬性值，不管任何執行中的可能動畫值，或停止動畫。Returns the base property value for the specified property on this element, disregarding any possible animated value from a running or stopped animation. (繼承來源 UIElement) 傳回 BindingExpression，代表指定屬性的繫結。Returns the BindingExpression that represents the binding on the specified property. (繼承來源 FrameworkElement) 取得這個 DependencyObject 的雜湊碼。Gets a hash code for this DependencyObject. (繼承來源 DependencyObject) 傳回裁剪遮罩的幾何。Returns a geometry for a clipping mask. 如果配置系統嘗試排列大於可用顯示空間的項目，則會套用這個遮罩。The mask applies if the layout system attempts to arrange an element that is larger than the available display space. (繼承來源 FrameworkElement) 建立特定的列舉值，以判斷哪些相依性屬性在此 DependencyObject 上具有本機設定的值。Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject. (繼承來源 DependencyObject) 傳回具現化 ControlTemplate 視覺化樹狀結構中的具名項目。Returns the named element in the visual tree of an instantiated ControlTemplate. (繼承來源 FrameworkElement) 取得目前執行個體的 Type。Gets the Type of the current instance. (繼承來源 Object) 如果沒有視覺父代，則傳回這個項目的替代邏輯父代。Returns an alternative logical parent for this element if there is no visual parent. (繼承來源 FrameworkElement) 傳回 DependencyObject 的這個執行個體上之相依性屬性的目前有效值。Returns the current effective value of a dependency property on this instance of a DependencyObject. (繼承來源 DependencyObject) 覆寫 GetVisualChild(Int32)，並從子項目集合傳回指定索引處的子系。Overrides GetVisualChild(Int32), and returns a child at the specified index from a collection of child elements. (繼承來源 FrameworkElement) 實作 HitTestCore(GeometryHitTestParameters)以提供基底項目點擊測試行為 (傳回 GeometryHitTestResult)。Implements HitTestCore(GeometryHitTestParameters) to supply base element hit testing behavior (returning GeometryHitTestResult). (繼承來源 UIElement) 實作 HitTestCore(PointHitTestParameters)以提供基底項目點擊測試行為 (傳回 HitTestResult)。Implements HitTestCore(PointHitTestParameters) to supply base element hit testing behavior (returning HitTestResult). (繼承來源 UIElement) 在目前項目範圍中傳回的輸入項目，輸入項目位在相對於目前項目原點的指定座標。Returns the input element within the current element that is at the specified coordinates, relative to the current element's origin. (繼承來源 UIElement) 使項目的排列狀態 (配置) 失效。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(). (繼承來源 UIElement) 使項目的測量狀態 (配置) 失效。Invalidates the measurement state (layout) for the element. (繼承來源 UIElement) 重新評估指定相依性屬性的有效值。Re-evaluates the effective value for the specified dependency property. (繼承來源 DependencyObject) 讓項目的呈現失效，並強制全新的配置傳遞。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. (繼承來源 UIElement) 判斷視覺物件是否為子系視覺物件的祖系。Determines whether the visual object is an ancestor of the descendant visual object. (繼承來源 Visual) 判斷視覺物件是否為祖系視覺物件的子系。Determines whether the visual object is a descendant of the ancestor visual object. (繼承來源 Visual) Updates 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. (繼承來源 UIElement) 為 FrameworkElement 實作基本的測量傳遞配置系統行為。Implements basic measure-pass layout system behavior for FrameworkElement. (繼承來源 FrameworkElement) 在排列之前，於第一個配置階段期間測量 Shape。Measures a Shape during the first layout pass prior to arranging it. (繼承來源 Shape) 建立目前 Object 的淺層複製。Creates a shallow copy of the current Object. (繼承來源 Object) 以所提供的周遊方向，將鍵盤焦點從這個項目移到其他項目。Moves the keyboard focus away from this element and to another element in a provided traversal direction. (繼承來源 FrameworkElement) 當叫用對這個項目有意義的便捷鍵 (Access Key) 時，為其提供類別處理。Provides class handling for when an access key that is meaningful for this element is invoked. (繼承來源 UIElement) 在衍生類別中被覆寫時，每當應用程式程式碼或內部處理序呼叫 ApplyTemplate() 時一都會叫用。When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate(). (繼承來源 FrameworkElement) 會在調整子項目的大小時支援配置行為。Supports layout behavior when a child element is resized. (繼承來源 UIElement) 當未處理的 ContextMenuClosing 路由事件到達其路由中的這個類別時，便會叫用此方法。Invoked whenever an unhandled ContextMenuClosing routed event reaches this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event. (繼承來源 FrameworkElement) 當未處理的 ContextMenuOpening 路由事件到達其路由中的這個類別時，便會叫用此方法。Invoked whenever an unhandled ContextMenuOpening routed event reaches this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event. (繼承來源 FrameworkElement) 為 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. (繼承來源 UIElement) 當轉譯此 View 的 DPI 變更時呼叫。Called when the DPI at which this View is rendered changes. (繼承來源 Visual) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 GotFocus 事件到達其路由中的這個項目時，便會叫用此方法。Invoked whenever an unhandled GotFocus event reaches this element in its route. (繼承來源 FrameworkElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 提供 GotTouchCapture 路由事件的類別處理，而這個事件會在擷取到對此項目的觸控時發生。Provides class handling for the GotTouchCapture routed event that occurs when a touch is captured to this element. (繼承來源 UIElement) 引發 Initialized 事件。Raises the Initialized event. 每當 IsInitialized 在內部設為 `true` 便會叫用此方法。This method is invoked whenever IsInitialized is set to `true` internally. (繼承來源 FrameworkElement) 當這個項目上引發未處理的 IsKeyboardFocusedChanged 事件時叫用。Invoked when an unhandled IsKeyboardFocusedChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event. (繼承來源 UIElement) 在此項目引發 IsKeyboardFocusWithinChanged 事件前叫用。Invoked just before the IsKeyboardFocusWithinChanged event is raised by this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event. (繼承來源 UIElement) 當這個項目上引發未處理的 IsMouseCapturedChanged 事件時叫用。Invoked when an unhandled IsMouseCapturedChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event. (繼承來源 UIElement) 當這個項目上引發未處理的 IsMouseCaptureWithinChanged 事件時叫用。Invoked when an unhandled IsMouseCaptureWithinChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event. (繼承來源 UIElement) 當這個項目上引發未處理的 IsMouseDirectlyOverChanged 事件時叫用。Invoked when an unhandled IsMouseDirectlyOverChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event. (繼承來源 UIElement) 當這個項目上引發未處理的 IsStylusCapturedChanged 事件時叫用。Invoked when an unhandled IsStylusCapturedChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event. (繼承來源 UIElement) 當這個項目上引發未處理的 IsStylusCaptureWithinChanged 事件時叫用。Invoked when an unhandled IsStylusCaptureWithinChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event. (繼承來源 UIElement) 當這個項目上引發未處理的 IsStylusDirectlyOverChanged 事件時叫用。Invoked when an unhandled IsStylusDirectlyOverChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 使用所提供的事件資料引發 LostFocus 路由事件。Raises the LostFocus routed event by using the event data that is provided. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 提供 LostTouchCapture 路由事件的類別處理，而這個事件會在此項目失去觸控擷取時發生。Provides class handling for the LostTouchCapture routed event that occurs when this element loses a touch capture. (繼承來源 UIElement) 當 ManipulationBoundaryFeedback 事件發生時呼叫。Called when the ManipulationBoundaryFeedback event occurs. (繼承來源 UIElement) 當 ManipulationCompleted 事件發生時呼叫。Called when the ManipulationCompleted event occurs. (繼承來源 UIElement) 當 ManipulationDelta 事件發生時呼叫。Called when the ManipulationDelta event occurs. (繼承來源 UIElement) 當 ManipulationInertiaStarting 事件發生時呼叫。Called when the ManipulationInertiaStarting event occurs. (繼承來源 UIElement) 當 ManipulationStarted 事件發生時呼叫。Called when the ManipulationStarted event occurs. (繼承來源 UIElement) 提供當第一次建立操作處理器時，所發生 ManipulationStarting 路由事件的類別處理。Provides class handling for the ManipulationStarting routed event that occurs when the manipulation processor is first created. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當這個項目上引發未處理的 MouseEnter 附加事件時叫用。Invoked when an unhandled MouseEnter attached event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event. (繼承來源 UIElement) 當這個項目上引發未處理的 MouseLeave 附加事件時叫用。Invoked when an unhandled MouseLeave attached event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event. (繼承來源 UIElement) 當這個項目上引發未處理的 MouseLeftButtonDown 路由事件時叫用。Invoked when an unhandled MouseLeftButtonDown routed event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 提供 PreviewTouchDown 路由事件的類別處理，而這個事件會在觸控按下此項目時發生。Provides class handling for the PreviewTouchDown routed event that occurs when a touch presses this element. (繼承來源 UIElement) 提供 PreviewTouchMove 路由事件的類別處理，而這個事件會在觸控尚處於此項目內並有所移動時發生。Provides class handling for the PreviewTouchMove routed event that occurs when a touch moves while inside this element. (繼承來源 UIElement) 提供 PreviewTouchUp 路由事件的類別處理，而這個事件會在觸控於此項目內放開時發生。Provides class handling for the PreviewTouchUp routed event that occurs when a touch is released inside this element. (繼承來源 UIElement) 每當 FrameworkElement 上任何相依性屬性的有效值已更新時叫用。Invoked whenever the effective value of any dependency property on this FrameworkElement has been updated. 已變更的特定相依性屬性會在引數參數中報告。The specific dependency property that changed is reported in the arguments parameter. (繼承來源 FrameworkElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 提供方法變更 Shape 項目的預設外觀。Provides a means to change the default appearance of a Shape element. (繼承來源 Shape) 使用指定的資訊作為最終事件資料的一部分，引發 SizeChanged 事件。Raises the SizeChanged event, using the specified information as part of the eventual event data. (繼承來源 FrameworkElement) 在這個項目上使用的樣式變更時叫用，如此將使配置失效。Invoked when the style in use on this element changes, which will invalidate the layout. (繼承來源 FrameworkElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當這個項目引發未處理的 StylusEnter 附加事件時叫用。Invoked when an unhandled StylusEnter attached event is raised by this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當這個項目引發未處理的 StylusLeave 附加事件時叫用。Invoked when an unhandled StylusLeave attached event is raised by this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 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. (繼承來源 UIElement) 當未處理的 ToolTipClosing 路由事件到達其路由中的這個類別時，便會叫用此方法。Invoked whenever an unhandled ToolTipClosing routed event reaches this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event. (繼承來源 FrameworkElement) 當 ToolTipOpening 路由事件到達其路由中的這個類別時，便會叫用此方法。Invoked whenever the ToolTipOpening routed event reaches this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event. (繼承來源 FrameworkElement) 提供 TouchDown 路由事件的類別處理，而這個事件會在觸控按下此項目內部時發生。Provides class handling for the TouchDown routed event that occurs when a touch presses inside this element. (繼承來源 UIElement) 提供 TouchEnter 路由事件的類別處理，而這個事件會在觸控從外面移至此項目範圍內時發生。Provides class handling for the TouchEnter routed event that occurs when a touch moves from outside to inside the bounds of this element. (繼承來源 UIElement) 提供 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. (繼承來源 UIElement) 提供 TouchMove 路由事件的類別處理，而這個事件會在觸控尚處於此項目內並有所移動時發生。Provides class handling for the TouchMove routed event that occurs when a touch moves while inside this element. (繼承來源 UIElement) 提供 TouchUp 路由事件的類別處理，而這個事件會在觸控於此項目內放開時發生。Provides class handling for the TouchUp routed event that occurs when a touch is released inside this element. (繼承來源 UIElement) 當視覺物件的 VisualCollection 已修改時呼叫。Called when the VisualCollection of the visual object is modified. (繼承來源 Visual) 在視覺化樹狀結構中這個項目的父項目變更時叫用。Invoked when the parent of this element in the visual tree is changed. Overrides OnVisualParentChanged(DependencyObject). (繼承來源 FrameworkElement) 在 FrameworkElement 的特定子類別中支援累加配置實作。Supports incremental layout implementations in specialized subclasses of FrameworkElement. ParentLayoutInvalidated(UIElement) 會在子項目使得屬性失效時叫用，該屬性在中繼資料內已標記，會在配置期間影響父代的測量或排列傳遞。ParentLayoutInvalidated(UIElement) is invoked when a child element has invalidated a property that is marked in metadata as affecting the parent's measure or arrange passes during layout. (繼承來源 FrameworkElement) 將螢幕座標中的 Point 轉換為 Point，表示 Visual 的目前座標系統。Converts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual. (繼承來源 Visual) 將表示 Point 之目前座標系統的 Visual 轉換為螢幕座標中的 Point。Converts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates. (繼承來源 Visual) 決定下一個項目，該項目會針對所提供的焦點移動方向，接收相對於此項目的焦點，但是不會實際移動焦點。Determines the next element that would receive focus relative to this element for a provided focus movement direction, but does not actually move the focus. (繼承來源 FrameworkElement) 引發特定路由事件。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). (繼承來源 UIElement) 傳回相依性屬性的區域值 (如果存在)。Returns the local value of a dependency property, if it exists. (繼承來源 DependencyObject) 提供可簡化對 NameScope 註冊方法之存取的存取子 (Accessor)。Provides an accessor that simplifies access to the NameScope registration method. (繼承來源 FrameworkElement) 從這個項目釋放所有擷取到的觸控裝置。Releases all captured touch devices from this element. (繼承來源 UIElement) 如果這個項目保有滑鼠捕捉，則釋放捕捉。Releases the mouse capture, if this element held the capture. (繼承來源 UIElement) 如果這個項目保有手寫筆裝置捕捉，則釋放捕捉。Releases the stylus device capture, if this element held the capture. (繼承來源 UIElement) 嘗試從這個項目中釋放指定的觸控裝置。Attempts to release the specified touch device from this element. (繼承來源 UIElement) 從這個項目中移除指定的路由事件處理常式。Removes the specified routed event handler from this element. (繼承來源 UIElement) 從這個項目的邏輯樹狀結構中移除提供的物件。Removes the provided object from this element's logical tree. FrameworkElement 更新受影響的邏輯樹狀結構父指標，以便與刪除保持同步。FrameworkElement updates the affected logical tree parent pointers to keep in sync with this deletion. (繼承來源 FrameworkElement) 移除兩個視覺物件之間的父-子關係。Removes the parent-child relationship between two visuals. (繼承來源 Visual) 根據提供的繫結物件，將繫結附加至這個項目。Attaches a binding to this element, based on the provided binding object. (繼承來源 FrameworkElement) 根據提供給資料來源做為路徑限定性條件的來源屬性名稱，將繫結附加至這個項目。Attaches a binding to this element, based on the provided source property name as a path qualification to the data source. (繼承來源 FrameworkElement) 設定相依性屬性的值，而不需要變更其值來源。Sets the value of a dependency property without changing its value source. (繼承來源 DependencyObject) 搜尋具有指定名稱的資源，並針對指定的屬性建立該資源的資源參考。Searches for a resource with the specified name and sets up a resource reference to it for the specified property. (繼承來源 FrameworkElement) 設定相依性屬性的區域值 (由相依性屬性的識別碼所指定)。Sets the local value of a dependency property, specified by its dependency property identifier. (繼承來源 DependencyObject) 設定唯讀相依性屬性的區域數值 (由相依性屬性的 DependencyPropertyKey 識別項所指定)。Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property. (繼承來源 DependencyObject) 傳回序列化 (Serialization) 處理序是否應該在這個類別的執行個體上，將 CommandBindings 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the CommandBindings property on instances of this class. (繼承來源 UIElement) 傳回序列化 (Serialization) 處理序是否應該在這個類別的執行個體上，將 InputBindings 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the InputBindings property on instances of this class. (繼承來源 UIElement) 傳回值，這個值表示序列化程序是否應該序列化所提供相依性屬性的值。Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property. (繼承來源 DependencyObject) 傳回序列化 (Serialization) 處理序是否應該將 Resources 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the Resources property. (繼承來源 FrameworkElement) 傳回序列化 (Serialization) 處理序是否應該將 Style 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the Style property. (繼承來源 FrameworkElement) 傳回序列化 (Serialization) 處理序是否應該將 Triggers 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the Triggers property. (繼承來源 FrameworkElement) 傳回代表目前物件的字串。Returns a string that represents the current object. (繼承來源 Object) 傳回轉換，這個轉換可用來將 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) 傳回轉換，這個轉換可用來將 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) 傳回轉換，這個轉換可用來將 Visual 的座標轉換為指定的視覺物件子系。Returns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant. (繼承來源 Visual) 傳回轉換，這個轉換可用來將 Visual 的座標轉換為指定的視覺物件。Returns a transform that can be used to transform coordinates from the Visual to the specified visual object. (繼承來源 Visual) 將相對於這個項目的點轉換成相對於指定項目的座標。Translates a point relative to this element to coordinates that are relative to the specified element. (繼承來源 UIElement) 以指定的索引鍵搜尋資源；如果找到，則傳回該資源。Searches for a resource with the specified key, and returns that resource if found. (繼承來源 FrameworkElement) 簡化對 NameScope 取消註冊方法的存取。Simplifies access to the NameScope de-registration method. (繼承來源 FrameworkElement) 重新將預設樣式套用至目前 FrameworkElement。Reapplies the default style to the current FrameworkElement. (繼承來源 FrameworkElement) 確認這個項目的所有視覺化子項目都已正確為配置而更新。Ensures that all visual child elements of this element are properly updated for layout. (繼承來源 UIElement) 請強制執行可以存取這個 DispatcherObject 的呼叫執行緒。Enforces that the calling thread has access to this DispatcherObject. (繼承來源 DispatcherObject)

## 事件

 在項目上的任何內容功能表正要關閉之前發生。Occurs just before any context menu on the element is closed. (繼承來源 FrameworkElement) 當項目上的任何內容功能表開啟時發生。Occurs when any context menu on the element is opened. (繼承來源 FrameworkElement) 這個項目的資料內容變更時發生。Occurs when the data context for this element changes. (繼承來源 FrameworkElement) 輸入系統報告其下以此項目作為拖曳目標的拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the drag target. (繼承來源 UIElement) 輸入系統報告其下以此項目作為拖曳來源的拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the drag origin. (繼承來源 UIElement) 在輸入系統回報以此項目作為可能置放目標的基礎拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the potential drop target. (繼承來源 UIElement) 輸入系統報告其下以這個項目作為置放目標的置放事件時發生。Occurs when the input system reports an underlying drop event with this element as the drop target. (繼承來源 UIElement) 發生於 Focusable 屬性的值變更時。Occurs when the value of the Focusable property changes. (繼承來源 UIElement) 輸入系統報告其下牽涉此元素的拖放事件時發生。Occurs when the input system reports an underlying drag-and-drop event that involves this element. (繼承來源 UIElement) 此元素取得邏輯焦點時發生。Occurs when this element gets logical focus. (繼承來源 UIElement) 鍵盤以此元素為焦點時發生。Occurs when the keyboard is focused on this element. (繼承來源 UIElement) 此元素擷取滑鼠時發生。Occurs when this element captures the mouse. (繼承來源 UIElement) 此元素擷取手寫筆時發生。Occurs when this element captures the stylus. (繼承來源 UIElement) 當觸控擷取至這個項目時發生。Occurs when a touch is captured to this element. (繼承來源 UIElement) 當這個 FrameworkElement 初始化時發生。Occurs when this FrameworkElement is initialized. 這個事件符合 IsInitialized 屬性值從 `false` (或未定義) 變更為 `true` 的案例。This event coincides with cases where the value of the IsInitialized property changes from `false` (or undefined) to `true`. (繼承來源 FrameworkElement) 當這個項目的 IsEnabled 屬性值變更時發生。Occurs when the value of the IsEnabled property on this element changes. (繼承來源 UIElement) 當這個項目的 IsHitTestVisible 相依性屬性值變更時發生。Occurs when the value of the IsHitTestVisible dependency property changes on this element. (繼承來源 UIElement) 當這個項目的 IsKeyboardFocused 屬性值變更時發生。Occurs when the value of the IsKeyboardFocused property changes on this element. (繼承來源 UIElement) 當這個項目的 IsKeyboardFocusWithin 屬性值變更時發生。Occurs when the value of the IsKeyboardFocusWithin property changes on this element. (繼承來源 UIElement) 當這個項目的 IsMouseCaptured 屬性值變更時發生。Occurs when the value of the IsMouseCaptured property changes on this element. (繼承來源 UIElement) 當這個項目的 IsMouseCaptureWithinProperty 值變更時發生。Occurs when the value of the IsMouseCaptureWithinProperty changes on this element. (繼承來源 UIElement) 當這個項目的 IsMouseDirectlyOver 屬性值變更時發生。Occurs when the value of the IsMouseDirectlyOver property changes on this element. (繼承來源 UIElement) 當這個項目的 IsStylusCaptured 屬性值變更時發生。Occurs when the value of the IsStylusCaptured property changes on this element. (繼承來源 UIElement) 當這個項目的 IsStylusCaptureWithin 屬性值變更時發生。Occurs when the value of the IsStylusCaptureWithin property changes on this element. (繼承來源 UIElement) 當這個項目的 IsStylusDirectlyOver 屬性值變更時發生。Occurs when the value of the IsStylusDirectlyOver property changes on this element. (繼承來源 UIElement) 當這個項目的 IsVisible 屬性值變更時發生。Occurs when the value of the IsVisible property changes on this element. (繼承來源 UIElement) 焦點在這個項目上方且按下按鍵時發生。Occurs when a key is pressed while focus is on this element. (繼承來源 UIElement) 焦點在這個項目上方且放開按鍵時發生。Occurs when a key is released while focus is on this element. (繼承來源 UIElement) 當目前 Dispatcher 的數個關聯視覺化項目的配置變更時發生。Occurs when the layout of the various visual elements associated with the current Dispatcher changes. (繼承來源 UIElement) 當項目已配置版面、呈現以及可以互動時發生。Occurs when the element is laid out, rendered, and ready for interaction. (繼承來源 FrameworkElement) 此元素失去邏輯焦點時發生。Occurs when this element loses logical focus. (繼承來源 UIElement) 鍵盤不再以此項目為焦點時發生。Occurs when the keyboard is no longer focused on this element,. (繼承來源 UIElement) 此元素失去滑鼠擷取時發生。Occurs when this element loses mouse capture. (繼承來源 UIElement) 此元素失去手寫筆擷取時發生。Occurs when this element loses stylus capture. (繼承來源 UIElement) 當這個項目失去觸控擷取時發生。Occurs when this element loses a touch capture. (繼承來源 UIElement) 當操作遇到界限時發生。Occurs when the manipulation encounters a boundary. (繼承來源 UIElement) 當對 UIElement 物件進行的操作和慣性完成時發生。Occurs when a manipulation and inertia on the UIElement object is complete. (繼承來源 UIElement) 輸入裝置在操作期間變更位置時發生。Occurs when the input device changes position during a manipulation. (繼承來源 UIElement) 當輸入裝置在操作期間失去和 UIElement 物件的通訊以及慣性開始時發生。Occurs when the input device loses contact with the UIElement object during a manipulation and inertia begins. (繼承來源 UIElement) 當輸入裝置開始對 UIElement 物件進行操作時發生。Occurs when an input device begins a manipulation on the UIElement object. (繼承來源 UIElement) 發生於第一次建立操作處理器時。Occurs when the manipulation processor is first created. (繼承來源 UIElement) 指標在此元素上方且按下任何滑鼠按鈕時發生。Occurs when any mouse button is pressed while the pointer is over this element. (繼承來源 UIElement) 滑鼠指標進入此元素的邊界時發生。Occurs when the mouse pointer enters the bounds of this element. (繼承來源 UIElement) 滑鼠指標離開此元素的邊界時發生。Occurs when the mouse pointer leaves the bounds of this element. (繼承來源 UIElement) 滑鼠指標在此元素上方且按下滑鼠左按鈕時發生。Occurs when the left mouse button is pressed while the mouse pointer is over this element. (繼承來源 UIElement) 滑鼠指標在此元素上方且放開滑鼠左按鈕時發生。Occurs when the left mouse button is released while the mouse pointer is over this element. (繼承來源 UIElement) 滑鼠指標在此元素上方移動時發生。Occurs when the mouse pointer moves while over this element. (繼承來源 UIElement) 滑鼠指標在此元素上方且按下滑鼠右按鈕時發生。Occurs when the right mouse button is pressed while the mouse pointer is over this element. (繼承來源 UIElement) 滑鼠指標在此元素上方且放開滑鼠右按鈕時發生。Occurs when the right mouse button is released while the mouse pointer is over this element. (繼承來源 UIElement) 在此元素上方放開任何滑鼠按鈕時發生。Occurs when any mouse button is released over this element. (繼承來源 UIElement) 滑鼠指標在此元素上方且使用者滾動滑鼠滾輪時發生。Occurs when the user rotates the mouse wheel while the mouse pointer is over this element. (繼承來源 UIElement) 輸入系統報告其下以此項目作為拖曳目標的拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the drag target. (繼承來源 UIElement) 輸入系統報告其下以此項目作為拖曳來源的拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the drag origin. (繼承來源 UIElement) 在輸入系統回報以此項目作為可能置放目標的基礎拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the potential drop target. (繼承來源 UIElement) 輸入系統報告其下以這個項目作為置放目標的置放事件時發生。Occurs when the input system reports an underlying drop event with this element as the drop target. (繼承來源 UIElement) 拖放操作開始時發生。Occurs when a drag-and-drop operation is started. (繼承來源 UIElement) 鍵盤以此元素為焦點時發生。Occurs when the keyboard is focused on this element. (繼承來源 UIElement) 焦點在這個項目上方且按下按鍵時發生。Occurs when a key is pressed while focus is on this element. (繼承來源 UIElement) 焦點在這個項目上方且放開按鍵時發生。Occurs when a key is released while focus is on this element. (繼承來源 UIElement) 鍵盤不再以此元素為焦點時發生。Occurs when the keyboard is no longer focused on this element. (繼承來源 UIElement) 指標在此元素上方且按下任何滑鼠按鈕時發生。Occurs when any mouse button is pressed while the pointer is over this element. (繼承來源 UIElement) 滑鼠指標在此元素上方且按下滑鼠左按鈕時發生。Occurs when the left mouse button is pressed while the mouse pointer is over this element. (繼承來源 UIElement) 滑鼠指標在此元素上方且放開滑鼠左按鈕時發生。Occurs when the left mouse button is released while the mouse pointer is over this element. (繼承來源 UIElement) 滑鼠指標在此元素上方且移動滑鼠指標時發生。Occurs when the mouse pointer moves while the mouse pointer is over this element. (繼承來源 UIElement) 滑鼠指標在此元素上方且按下滑鼠右按鈕時發生。Occurs when the right mouse button is pressed while the mouse pointer is over this element. (繼承來源 UIElement) 滑鼠指標在此元素上方且放開滑鼠右按鈕時發生。Occurs when the right mouse button is released while the mouse pointer is over this element. (繼承來源 UIElement) 滑鼠指標在此元素上方且放開任何滑鼠按鈕時發生。Occurs when any mouse button is released while the mouse pointer is over this element. (繼承來源 UIElement) 滑鼠指標在此元素上方且使用者滾動滑鼠滾輪時發生。Occurs when the user rotates the mouse wheel while the mouse pointer is over this element. (繼承來源 UIElement) 拖放操作期間，鍵盤或滑鼠按鈕狀態變更時發生。Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation. (繼承來源 UIElement) 手寫筆指標在此元素上方且按下手寫筆按鈕時發生。Occurs when the stylus button is pressed while the pointer is over this element. (繼承來源 UIElement) 手寫筆指標在此元素上方且放開手寫筆按鈕時發生。Occurs when the stylus button is released while the pointer is over this element. (繼承來源 UIElement) 手寫筆在此項目上方且碰觸數位板時發生。Occurs when the stylus touches the digitizer while it is over this element. (繼承來源 UIElement) 手寫筆在項目上方移動，但沒有真正碰觸數位板時發生。Occurs when the stylus moves over an element without actually touching the digitizer. (繼承來源 UIElement) 手寫筆在此項目上方，且夠靠近數位板而被偵測到時發生。Occurs when the stylus is close enough to the digitizer to be detected, while over this element. (繼承來源 UIElement) 手寫筆在項目上方移動時發生。Occurs when the stylus moves while over the element. 手寫筆必須在受到數位板偵測時移動才能引發此事件，否則會改為引發 PreviewStylusInAirMove。The stylus must move while being detected by the digitizer to raise this event, otherwise, PreviewStylusInAirMove is raised instead. (繼承來源 UIElement) 手寫筆遠離數位板而無法被偵測到時發生。Occurs when the stylus is too far from the digitizer to be detected. (繼承來源 UIElement) 使用者執行其中一種手寫筆筆勢時發生。Occurs when a user performs one of several stylus gestures. (繼承來源 UIElement) 手寫筆在此項目上方，且使用者將手寫筆舉起離開數位板時發生。Occurs when the user raises the stylus off the digitizer while the stylus is over this element. (繼承來源 UIElement) 此元素以一種與裝置無關的方式取得文字時發生。Occurs when this element gets text in a device-independent manner. (繼承來源 UIElement) 手指在這個項目上方且在螢幕上觸控時發生。Occurs when a finger touches the screen while the finger is over this element. (繼承來源 UIElement) 手指在這個項目上方且在螢幕上移動時發生。Occurs when a finger moves on the screen while the finger is over this element. (繼承來源 UIElement) 手指在這個項目上方且離開螢幕時發生。Occurs when a finger is raised off of the screen while the finger is over this element. (繼承來源 UIElement) 拖放操作期間，鍵盤或滑鼠按鈕狀態變更時發生。Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation. (繼承來源 UIElement) 要求顯示游標時發生。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. (繼承來源 UIElement) 在這個項目上呼叫 BringIntoView(Rect) 時發生。Occurs when BringIntoView(Rect) is called on this element. (繼承來源 FrameworkElement) 當這個項目的 ActualHeight 或 ActualWidth 屬性變更值時發生。Occurs when either the ActualHeight or the ActualWidth properties change value on this element. (繼承來源 FrameworkElement) 來源值因與此項目繫結的任何現有屬性變更時發生。Occurs when the source value changes for any existing property binding on this element. (繼承來源 FrameworkElement) 手寫筆指標在此元素上方且按下手寫筆按鈕時發生。Occurs when the stylus button is pressed while the pointer is over this element. (繼承來源 UIElement) 手寫筆指標在此元素上方且放開手寫筆按鈕時發生。Occurs when the stylus button is released while the pointer is over this element. (繼承來源 UIElement) 手寫筆在此項目上方且碰觸數位板時發生。Occurs when the stylus touches the digitizer while the stylus is over this element. (繼承來源 UIElement) 手寫筆進入此元素的邊界時發生。Occurs when the stylus enters the bounds of this element. (繼承來源 UIElement) 手寫筆在項目上方移動，但沒有真正碰觸數位板時發生。Occurs when the stylus moves over an element without actually touching the digitizer. (繼承來源 UIElement) 手寫筆在此項目上方，且夠靠近數位板而被偵測到時發生。Occurs when the stylus is close enough to the digitizer to be detected, while over this element. (繼承來源 UIElement) 手寫筆離開元素的邊界時發生。Occurs when the stylus leaves the bounds of the element. (繼承來源 UIElement) 當手寫筆移至此項目上方時發生。Occurs when the stylus moves over this element. 手寫筆在數位板上必須移動才會引發這個事件。The stylus must move while on the digitizer to raise this event. 否則，會改為引發 StylusInAirMove。Otherwise, StylusInAirMove is raised instead. (繼承來源 UIElement) 手寫筆在此項目上方，且遠離數位板而無法被偵測到時發生。Occurs when the stylus is too far from the digitizer to be detected, while over this element. (繼承來源 UIElement) 使用者執行其中一種手寫筆筆勢時發生。Occurs when a user performs one of several stylus gestures. (繼承來源 UIElement) 手寫筆在此項目上方，且使用者將手寫筆舉起離開數位板時發生。Occurs when the user raises the stylus off the digitizer while it is over this element. (繼承來源 UIElement) 這個項目上的任何屬性繫結的目標值變更時發生。Occurs when the target value changes for any property binding on this element. (繼承來源 FrameworkElement) 此元素以一種與裝置無關的方式取得文字時發生。Occurs when this element gets text in a device-independent manner. (繼承來源 UIElement) 在項目上的任何工具提示正要關閉之前發生。Occurs just before any tooltip on the element is closed. (繼承來源 FrameworkElement) 任何元素的工具提示開啟時發生。Occurs when any tooltip on the element is opened. (繼承來源 FrameworkElement) 手指在這個項目上方且在螢幕上觸控時發生。Occurs when a finger touches the screen while the finger is over this element. (繼承來源 UIElement) 當觸控從這個項目的界限外部移至內部時發生。Occurs when a touch moves from outside to inside the bounds of this element. (繼承來源 UIElement) 當觸控從這個項目的界限內部移至外部時發生。Occurs when a touch moves from inside to outside the bounds of this element. (繼承來源 UIElement) 手指在這個項目上方且在螢幕上移動時發生。Occurs when a finger moves on the screen while the finger is over this element. (繼承來源 UIElement) 手指在這個項目上方且離開螢幕時發生。Occurs when a finger is raised off of the screen while the finger is over this element. (繼承來源 UIElement) 當項目從已載入項目的項目樹狀結構中移除時發生。Occurs when the element is removed from within an element tree of loaded elements. (繼承來源 FrameworkElement)

## 明確介面實作

 如需這個成員的描述，請參閱 IsAmbientPropertyAvailable(String) 方法。For a description of this member, see the IsAmbientPropertyAvailable(String) method. (繼承來源 FrameworkElement)