TextBox TextBox TextBox TextBox Class

定義

代表可以用來顯示或編輯未格式化文字的控制項。Represents a control that can be used to display or edit unformatted text.

public ref class TextBox : System::Windows::Controls::Primitives::TextBoxBase, System::Windows::Markup::IAddChild
[System.Windows.Localizability(System.Windows.LocalizationCategory.Text)]
[System.Windows.Markup.ContentProperty("Text")]
public class TextBox : System.Windows.Controls.Primitives.TextBoxBase, System.Windows.Markup.IAddChild
type TextBox = class
    inherit TextBoxBase
    interface IAddChild
Public Class TextBox
Inherits TextBoxBase
Implements IAddChild
繼承
衍生
屬性
實作

範例

此範例示範如何使用 文字屬性來設定 TextBox 控制項的初始文字內容。This example shows how to use the Text property to set the initial text contents of a TextBox control.

注意

雖然此範例的 Extensible Application Markup Language (XAML) 版本可以使用<TextBox.Text > 標籤周圍的每個按鈕的文字方塊內容的文字,不需要因為文字方塊套用 ContentPropertyAttribute此屬性的 Text 屬性。Although the Extensible Application Markup Language (XAML) version of the example could use the <TextBox.Text> tags around the text of each button's TextBox content, it is not necessary because the TextBox applies the ContentPropertyAttribute attribute to the Text property.

<TextBox Name="tbSettingText">  
  Initial text contents of the TextBox.  
</TextBox>  
tbSettingText.Text = "Initial text contents of the TextBox.";  
tbSettingText.Text = "Initial text contents of the TextBox."  

如需其他範例,請參閱本文件的 4.0 版:TextBox 類別For additional examples, see the 4.0 version of this document: TextBox Class.

備註

ATextBox控制項可以包含未格式化的文字只有在其Text屬性。A TextBox control can contain only unformatted text in its Text property. 下圖顯示的範例TextBoxThe following graphic shows an example of a TextBox.

TextBox 螢幕擷取畫面TextBox screen shot
文字方塊範例Example of a TextBox

TextBox 是數個封裝的元件所組成的複合控制項。TextBox is a composite control that is composed of several encapsulated components. 因此,某些事件不會反昇最多包含控制項因為它們封裝的子項目所處理。Consequently, some events do not bubble up to the containing control because they are handled by encapsulated child elements. 基於這個原因,應用程式開發人員應該接聽的事件 (以 「 預覽 」 的前置詞表示) 的通道版本。Because of this, application developers should listen for the tunneling version of an event (denoted by the prefix "Preview").

TextBox 支援未格式化的文字。TextBox supports unformatted text only. 對於需要更豐富的內容提供支援的應用程式,請參閱RichTextBoxFor applications that require support for richer content, see RichTextBox. 如需要接受密碼或其他機密的輸入應用程式,請參閱PasswordBoxFor applications that need to accept passwords or other sensitive input, see PasswordBox.

水平和垂直對齊文字內TextBox利用HorizontalContentAlignmentVerticalContentAlignment屬性。Horizontally and vertically aligning text within a TextBox is done with the HorizontalContentAlignment and VerticalContentAlignment properties. 對齊TextBox內頁面的配置利用HorizontalAlignmentVerticalAlignment屬性。Aligning the TextBox within the layout of the page is done with the HorizontalAlignment and VerticalAlignment properties.

若要隱藏周圍的框線,最好TextBox是設定BorderThickness屬性TextBox0The best way to hide the border around a TextBox is to set the BorderThickness property of the TextBox to 0.

重要

TextBox 具有內建處理事件反昇MouseUpMouseDown事件。TextBox has built-in handling for the bubbling MouseUp and MouseDown events. 因此,自訂事件處理常式,接聽MouseUp或是MouseDown事件TextBox將不會呼叫。Consequently, custom event handlers that listen for MouseUp or MouseDown events from a TextBox will not be called. 如果您需要回應這些事件,通道接聽PreviewMouseUpPreviewMouseDown事件相反的或註冊處理常式與HandledEventsToo(後面這個選項才可透過程式碼) 的引數。If you need to respond to these events, listen for the tunneling PreviewMouseUp and PreviewMouseDown events instead, or register the handlers with the HandledEventsToo argument (this latter option is only available through code). 不會將事件處理,除非您刻意想要停用標記TextBox原生處理這些事件,並注意這其中有顯著的效果,在控制項上UIUIDo not mark the event handled unless you deliberately want to disable TextBox native handling of these events, and be aware that this has notable effects on the control's UIUI.

捲軸不會顯示在TextBox預設。Scrollbars are not visible on a TextBox by default. 若要顯示捲軸,請設定VerticalScrollBarVisibilityHorizontalScrollBarVisibility屬性,以VisibleAutoTo make scrollbars visible, set the VerticalScrollBarVisibility and HorizontalScrollBarVisibility properties to Visible or Auto.

通常TextChanged事件應該用來偵測中的文字TextBox或是RichTextBox而不是變更KeyDown跟您預期的一樣。Usually the TextChanged event should be used to detect whenever the text in a TextBox or RichTextBox changes rather then KeyDown as you might expect. 請參閱如何:偵測文字時,在文字方塊中已變更的範例。See How to: Detect When Text in a TextBox Has Changed for an example.

自訂文字方塊控制項Customizing the TextBox Control

若要將相同的屬性設定套用至多個TextBox控制項,可使用Style屬性。To apply the same property settings to multiple TextBox controls, use the Style property. 您可以修改預設ControlTemplate,讓控制項的獨特的外觀。You can modify the default ControlTemplate to give the control a unique appearance. 如需有關建立ControlTemplate,請參閱 < 透過建立 ControlTemplate 自訂現有控制項的外觀For more information about creating a ControlTemplate, see Customizing the Appearance of an Existing Control by Creating a ControlTemplate. 若要查看的組件和狀態所特有TextBox,請參閱 < TextBox 樣式和範本To see the parts and states that are specific to the TextBox, see TextBox Styles and Templates.

此控制項的相依性屬性可能會設定控制項的預設樣式。Dependency properties for this control might be set by the control's default style. 如果屬性設定為預設樣式,屬性可能會變更其預設值,當控制項出現在應用程式。If a property is set by a default style, the property might change from its default value when the control appears in the application. 預設樣式會決定由哪一個桌面佈景主題時,會使用應用程式正在執行。The default style is determined by which desktop theme is used when the application is running. 如需詳細資訊,請參閱 < 預設 WPF 佈景主題For more information, see Default WPF Themes.

注意

如果該屬性同時顯示於控制項的預設範本,並使用 TemplateBinding 來設定,則設定視覺效果屬性僅具效果作用。Setting a visual property only has an effect if that property is both present in the control's default template and is set by using a TemplateBinding. 您可以在通過建立 ControlTemplate 自訂現有控制項的外觀文章的變更控制項的視覺效果結構一節中找到視覺效果屬性清單。You can find a list of visual properties in the Changing the Visual Structure of a Control section in the Customizing the Appearance of an Existing Control by Creating a ControlTemplate article.

建構函式

TextBox() TextBox() TextBox() TextBox()

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

欄位

CharacterCasingProperty CharacterCasingProperty CharacterCasingProperty CharacterCasingProperty

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

MaxLengthProperty MaxLengthProperty MaxLengthProperty MaxLengthProperty

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

MaxLinesProperty MaxLinesProperty MaxLinesProperty MaxLinesProperty

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

MinLinesProperty MinLinesProperty MinLinesProperty MinLinesProperty

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

TextAlignmentProperty TextAlignmentProperty TextAlignmentProperty TextAlignmentProperty

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

TextDecorationsProperty TextDecorationsProperty TextDecorationsProperty TextDecorationsProperty

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

TextProperty TextProperty TextProperty TextProperty

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

TextWrappingProperty TextWrappingProperty TextWrappingProperty TextWrappingProperty

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

屬性

AcceptsReturn AcceptsReturn AcceptsReturn AcceptsReturn

取得或設定值,該值指出當使用者按下 ENTER 鍵時,文字編輯控制項的回應方式。Gets or sets a value that indicates how the text editing control responds when the user presses the ENTER key.

(Inherited from TextBoxBase)
AcceptsTab AcceptsTab AcceptsTab AcceptsTab

取得或設定使用者按下 TAB 鍵時,文字編輯控制項如何回應的值。Gets or sets a value that indicates how the text editing control responds when the user presses the TAB key.

(Inherited from TextBoxBase)
ActualHeight ActualHeight ActualHeight ActualHeight

取得呈現此項目的高度。Gets the rendered height of this element.

(Inherited from FrameworkElement)
ActualWidth ActualWidth ActualWidth ActualWidth

取得呈現此項目的寬度。Gets the rendered width of this element.

(Inherited from FrameworkElement)
AllowDrop AllowDrop AllowDrop AllowDrop

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

(Inherited from UIElement)
AreAnyTouchesCaptured AreAnyTouchesCaptured AreAnyTouchesCaptured AreAnyTouchesCaptured

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

(Inherited from UIElement)
AreAnyTouchesCapturedWithin AreAnyTouchesCapturedWithin AreAnyTouchesCapturedWithin AreAnyTouchesCapturedWithin

取得值,這個值表示是否至少有一個觸控擷取至這個項目或其視覺化樹狀結構中的任何子項目。Gets a value that indicates whether at least one touch is captured to this element or to any child elements in its visual tree.

(Inherited from UIElement)
AreAnyTouchesDirectlyOver AreAnyTouchesDirectlyOver AreAnyTouchesDirectlyOver AreAnyTouchesDirectlyOver

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

(Inherited from UIElement)
AreAnyTouchesOver AreAnyTouchesOver AreAnyTouchesOver AreAnyTouchesOver

取得值,這個值表示是否至少有一個觸控在這個項目或其視覺化樹狀結構中的任何子項目上按下。Gets a value that indicates whether at least one touch is pressed over this element or any child elements in its visual tree.

(Inherited from UIElement)
AutoWordSelection AutoWordSelection AutoWordSelection AutoWordSelection

取得或設定使用者以滑鼠拖曳並選取文字部分時,是否要選取該文字其他部分的值。Gets or sets a value that determines whether when a user selects part of a word by dragging across it with the mouse, the rest of the word is selected.

(Inherited from TextBoxBase)
Background Background Background Background

取得或設定描述控制項背景的筆刷。Gets or sets a brush that describes the background of a control.

(Inherited from Control)
BindingGroup BindingGroup BindingGroup BindingGroup

取得或設定用於項目的 BindingGroupGets or sets the BindingGroup that is used for the element.

(Inherited from FrameworkElement)
BitmapEffect BitmapEffect BitmapEffect BitmapEffect

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

(Inherited from UIElement)
BitmapEffectInput BitmapEffectInput BitmapEffectInput BitmapEffectInput

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

(Inherited from UIElement)
BorderBrush BorderBrush BorderBrush BorderBrush

取得或設定描述控制項框線背景的筆刷。Gets or sets a brush that describes the border background of a control.

(Inherited from Control)
BorderThickness BorderThickness BorderThickness BorderThickness

取得或設定控制項的框線粗細。Gets or sets the border thickness of a control.

(Inherited from Control)
CacheMode CacheMode CacheMode CacheMode

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

(Inherited from UIElement)
CanRedo CanRedo CanRedo CanRedo

取得值,這個值表示是否能夠重新執行最近一個復原動作。Gets a value that indicates whether the most recent undo action can be redone.

(Inherited from TextBoxBase)
CanUndo CanUndo CanUndo CanUndo

取得值,這個值表示是否能夠復原最近一個動作。Gets a value that indicates whether the most recent action can be undone.

(Inherited from TextBoxBase)
CaretBrush CaretBrush CaretBrush CaretBrush

取得或設定用來繪製文字方塊插入號的筆刷。Gets or sets the brush that is used to paint the caret of the text box.

(Inherited from TextBoxBase)
CaretIndex CaretIndex CaretIndex CaretIndex

取得或設定插入號的插入位置索引。Gets or sets the insertion position index of the caret.

CharacterCasing CharacterCasing CharacterCasing CharacterCasing

取得或設定將字元手動輸入文字方塊時的大小寫。Gets or sets how characters are cased when they are manually entered into the text box.

Clip Clip Clip Clip

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

(Inherited from UIElement)
ClipToBounds ClipToBounds ClipToBounds ClipToBounds

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

(Inherited from UIElement)
CommandBindings CommandBindings CommandBindings CommandBindings

取得與這個項目關聯的 CommandBinding 物件集合。Gets a collection of CommandBinding objects associated with this element. CommandBinding 會啟用此項目的命令處理,並宣告命令、其事件及此項目所附加之處理常式之間的連結。A CommandBinding enables command handling for this element, and declares the linkage between a command, its events, and the handlers attached by this element.

(Inherited from UIElement)
ContextMenu ContextMenu ContextMenu ContextMenu

取得或設定透過操作功能表項目的 使用者介面 (UI)user interface (UI) 要求操作功能表時應該出現的操作功能表項目。Gets or sets the context menu element that should appear whenever the context menu is requested through 使用者介面 (UI)user interface (UI) from within this element.

(Inherited from FrameworkElement)
Cursor Cursor Cursor Cursor

取得或設定滑鼠指標在此元素上方時所顯示的游標。Gets or sets the cursor that displays when the mouse pointer is over this element.

(Inherited from FrameworkElement)
DataContext DataContext DataContext DataContext

取得或設定項目在參與資料繫結時的資料內容。Gets or sets the data context for an element when it participates in data binding.

(Inherited from FrameworkElement)
DefaultStyleKey DefaultStyleKey DefaultStyleKey DefaultStyleKey

取得或設定可在使用或定義佈景主題樣式時,用來參考這個控制項之樣式的索引鍵。Gets or sets the key to use to reference the style for this control, when theme styles are used or defined.

(Inherited from FrameworkElement)
DependencyObjectType DependencyObjectType DependencyObjectType DependencyObjectType

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

(Inherited from DependencyObject)
DesiredSize DesiredSize DesiredSize DesiredSize

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

(Inherited from UIElement)
Dispatcher Dispatcher Dispatcher Dispatcher

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

(Inherited from DispatcherObject)
Effect Effect Effect Effect

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

(Inherited from UIElement)
ExtentHeight ExtentHeight ExtentHeight ExtentHeight

取得可見內容區域的垂直大小。Gets the vertical size of the visible content area.

(Inherited from TextBoxBase)
ExtentWidth ExtentWidth ExtentWidth ExtentWidth

取得可見內容區域的水平大小。Gets the horizontal size of the visible content area.

(Inherited from TextBoxBase)
FlowDirection FlowDirection FlowDirection FlowDirection

取得或設定文字和其他 使用者介面 (UI)user interface (UI) 項目在控制其配置的任何父項目中的流向。Gets or sets the direction that text and other 使用者介面 (UI)user interface (UI) elements flow within any parent element that controls their layout.

(Inherited from FrameworkElement)
Focusable Focusable Focusable Focusable

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

(Inherited from UIElement)
FocusVisualStyle FocusVisualStyle FocusVisualStyle FocusVisualStyle

取得或設定屬性,這個屬性可自訂外觀、效果或其他樣式特性,以在這個項目捕捉到鍵盤焦點時套用至項目。Gets or sets a property that enables customization of appearance, effects, or other style characteristics that will apply to this element when it captures keyboard focus.

(Inherited from FrameworkElement)
FontFamily FontFamily FontFamily FontFamily

取得或設定控制項的字型系列。Gets or sets the font family of the control.

(Inherited from Control)
FontSize FontSize FontSize FontSize

取得或設定字型大小。Gets or sets the font size.

(Inherited from Control)
FontStretch FontStretch FontStretch FontStretch

取得或設定螢幕上字型緊縮或加寬的程度。Gets or sets the degree to which a font is condensed or expanded on the screen.

(Inherited from Control)
FontStyle FontStyle FontStyle FontStyle

取得或設定字型樣式。Gets or sets the font style.

(Inherited from Control)
FontWeight FontWeight FontWeight FontWeight

取得或設定指定字型的粗細。Gets or sets the weight or thickness of the specified font.

(Inherited from Control)
ForceCursor ForceCursor ForceCursor ForceCursor

取得或設定值,這個值表示此 FrameworkElement 是否應強制使用者介面 (UI)user interface (UI) 呈現游標,如 Cursor 屬性所宣告。Gets or sets a value that indicates whether this FrameworkElement should force the 使用者介面 (UI)user interface (UI) to render the cursor as declared by the Cursor property.

(Inherited from FrameworkElement)
Foreground Foreground Foreground Foreground

取得或設定描述前景色彩的筆刷。Gets or sets a brush that describes the foreground color.

(Inherited from Control)
HandlesScrolling HandlesScrolling HandlesScrolling HandlesScrolling

取得值,這個值表示控制項是否支援捲動。Gets a value that indicates whether a control supports scrolling.

(Inherited from Control)
HasAnimatedProperties HasAnimatedProperties HasAnimatedProperties HasAnimatedProperties

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

(Inherited from UIElement)
HasEffectiveKeyboardFocus HasEffectiveKeyboardFocus HasEffectiveKeyboardFocus HasEffectiveKeyboardFocus

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

(Inherited from UIElement)
Height Height Height Height

取得或設定項目的建議高度。Gets or sets the suggested height of the element.

(Inherited from FrameworkElement)
HorizontalAlignment HorizontalAlignment HorizontalAlignment HorizontalAlignment

取得或設定套用至此元素在父項元素 (例如面板或項目控制項) 中組成時的水平對齊特性。Gets or sets the horizontal alignment characteristics applied to this element when it is composed within a parent element, such as a panel or items control.

(Inherited from FrameworkElement)
HorizontalContentAlignment HorizontalContentAlignment HorizontalContentAlignment HorizontalContentAlignment

取得或設定控制項內容的水平對齊。Gets or sets the horizontal alignment of the control's content.

(Inherited from Control)
HorizontalOffset HorizontalOffset HorizontalOffset HorizontalOffset

取得或設定水平捲軸位置。Gets or sets the horizontal scroll position.

(Inherited from TextBoxBase)
HorizontalScrollBarVisibility HorizontalScrollBarVisibility HorizontalScrollBarVisibility HorizontalScrollBarVisibility

取得或設定值,這個值表示是否要顯示水平捲軸。Gets or sets a value that indicates whether a horizontal scroll bar is shown.

(Inherited from TextBoxBase)
InheritanceBehavior InheritanceBehavior InheritanceBehavior InheritanceBehavior

取得或設定屬性值繼承的範圍限制、資源索引鍵查閱,以及 RelativeSource FindAncestor 查閱。Gets or sets the scope limits for property value inheritance, resource key lookup, and RelativeSource FindAncestor lookup.

(Inherited from FrameworkElement)
InputBindings InputBindings InputBindings InputBindings

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

(Inherited from UIElement)
InputScope InputScope InputScope InputScope

取得或設定此 FrameworkElement 使用的輸入內容。Gets or sets the context for input used by this FrameworkElement.

(Inherited from FrameworkElement)
IsArrangeValid IsArrangeValid IsArrangeValid IsArrangeValid

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

(Inherited from UIElement)
IsEnabled IsEnabled IsEnabled IsEnabled

取得或設定值,這個值表示 使用者介面 (UI)user interface (UI) 中是否已啟用這個項目。Gets or sets a value indicating whether this element is enabled in the 使用者介面 (UI)user interface (UI). 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
IsEnabledCore IsEnabledCore IsEnabledCore IsEnabledCore

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

(Inherited from UIElement)
IsFocused IsFocused IsFocused IsFocused

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

(Inherited from UIElement)
IsHitTestVisible IsHitTestVisible IsHitTestVisible IsHitTestVisible

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

(Inherited from UIElement)
IsInactiveSelectionHighlightEnabled IsInactiveSelectionHighlightEnabled IsInactiveSelectionHighlightEnabled IsInactiveSelectionHighlightEnabled

取得或設定值,指出文字方塊是否會在文字方塊沒有焦點時,顯示選取的文字。Gets or sets a value that indicates whether the text box displays selected text when the text box does not have focus.

(Inherited from TextBoxBase)
IsInitialized IsInitialized IsInitialized IsInitialized

取得值,指出在由 XAMLXAML 處理器處理期間,或是明確地呼叫 EndInit() 方法時,是否已初始化這個項目。Gets a value that indicates whether this element has been initialized, either during processing by a XAMLXAML processor, or by explicitly having its EndInit() method called.

(Inherited from FrameworkElement)
IsInputMethodEnabled IsInputMethodEnabled IsInputMethodEnabled IsInputMethodEnabled

取得值,指出輸入法系統 (例如 輸入法 (IME)Input Method Editor (IME)) 是否已為處理這個項目的輸入而啟用。Gets a value indicating whether an input method system, such as an 輸入法 (IME)Input Method Editor (IME), is enabled for processing the input to this element.

(Inherited from UIElement)
IsKeyboardFocused IsKeyboardFocused IsKeyboardFocused IsKeyboardFocused

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

(Inherited from UIElement)
IsKeyboardFocusWithin IsKeyboardFocusWithin IsKeyboardFocusWithin IsKeyboardFocusWithin

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

(Inherited from UIElement)
IsLoaded IsLoaded IsLoaded IsLoaded

取得值,這個值表示此項目是否已載入以供展示。Gets a value that indicates whether this element has been loaded for presentation.

(Inherited from FrameworkElement)
IsManipulationEnabled IsManipulationEnabled IsManipulationEnabled IsManipulationEnabled

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

(Inherited from UIElement)
IsMeasureValid IsMeasureValid IsMeasureValid IsMeasureValid

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

(Inherited from UIElement)
IsMouseCaptured IsMouseCaptured IsMouseCaptured IsMouseCaptured

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

(Inherited from UIElement)
IsMouseCaptureWithin IsMouseCaptureWithin IsMouseCaptureWithin IsMouseCaptureWithin

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

(Inherited from UIElement)
IsMouseDirectlyOver IsMouseDirectlyOver IsMouseDirectlyOver IsMouseDirectlyOver

取得值,指出滑鼠指標位置是否與點擊測試結果對應,該結果會將複合項目納入考量。Gets a value that indicates whether the position of the mouse pointer corresponds to hit test results, which take element compositing into account. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
IsMouseOver IsMouseOver IsMouseOver IsMouseOver

取得值,指出滑鼠指標是否在這個項目上方 (包括視覺化樹狀中的子項目)。Gets a value indicating whether the mouse pointer is located over this element (including child elements in the visual tree). 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
IsReadOnly IsReadOnly IsReadOnly IsReadOnly

取得或設定文字編輯控制項與使用者互動時是否為唯讀的值。Gets or sets a value that indicates whether the text editing control is read-only to a user interacting with the control.

(Inherited from TextBoxBase)
IsReadOnlyCaretVisible IsReadOnlyCaretVisible IsReadOnlyCaretVisible IsReadOnlyCaretVisible

取得或設定值,這個值表示唯讀文字方塊是否顯示插入號。Gets or sets a value that indicates whether a read-only text box displays a caret.

(Inherited from TextBoxBase)
IsSealed IsSealed IsSealed IsSealed

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

(Inherited from DependencyObject)
IsSelectionActive IsSelectionActive IsSelectionActive IsSelectionActive

取得值,指出文字方塊是否具有焦點和選取的文字。Gets a value that indicates whether the text box has focus and selected text.

(Inherited from TextBoxBase)
IsStylusCaptured IsStylusCaptured IsStylusCaptured IsStylusCaptured

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

(Inherited from UIElement)
IsStylusCaptureWithin IsStylusCaptureWithin IsStylusCaptureWithin IsStylusCaptureWithin

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

(Inherited from UIElement)
IsStylusDirectlyOver IsStylusDirectlyOver IsStylusDirectlyOver IsStylusDirectlyOver

取得值,指出手寫筆位置是否與點擊測試結果相對應,該結果會將複合項目納入考量。Gets a value that indicates whether the stylus position corresponds to hit test results, which take element compositing into account. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
IsStylusOver IsStylusOver IsStylusOver IsStylusOver

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

(Inherited from UIElement)
IsTabStop IsTabStop IsTabStop IsTabStop

取得或設定值,這個值表示控制項是否包含於索引標籤巡覽。Gets or sets a value that indicates whether a control is included in tab navigation.

(Inherited from Control)
IsUndoEnabled IsUndoEnabled IsUndoEnabled IsUndoEnabled

取得或設定文字編輯控制項是否啟用復原支援的值。Gets or sets a value that indicates whether undo support is enabled for the text-editing control.

(Inherited from TextBoxBase)
IsVisible IsVisible IsVisible IsVisible

取得值,表示這個項目在 使用者介面 (UI)user interface (UI) 中是否可見。Gets a value indicating whether this element is visible in the 使用者介面 (UI)user interface (UI). 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
Language Language Language Language

取得或設定套用至項目的當地語系化/全球化語言資訊。Gets or sets localization/globalization language information that applies to an element.

(Inherited from FrameworkElement)
LayoutTransform LayoutTransform LayoutTransform LayoutTransform

取得或設定應在執行配置時,套用在這個項目圖形轉換。Gets or sets a graphics transformation that should apply to this element when layout is performed.

(Inherited from FrameworkElement)
LineCount LineCount LineCount LineCount

取得在文字方塊中的總行數。Gets the total number of lines in the text box.

LogicalChildren LogicalChildren LogicalChildren LogicalChildren

取得 TextBox 之邏輯子項目的列舉程式。Gets an enumerator for the logical child elements of the TextBox.

Margin Margin Margin Margin

取得或設定項目的外邊界。Gets or sets the outer margin of an element.

(Inherited from FrameworkElement)
MaxHeight MaxHeight MaxHeight MaxHeight

取得或設定元素的最大高度限制。Gets or sets the maximum height constraint of the element.

(Inherited from FrameworkElement)
MaxLength MaxLength MaxLength MaxLength

取得或設定可手動輸入至文字方塊中的最大字元數。Gets or sets the maximum number of characters that can be manually entered into the text box.

MaxLines MaxLines MaxLines MaxLines

取得或設定可看見的最大行數。Gets or sets the maximum number of visible lines.

MaxWidth MaxWidth MaxWidth MaxWidth

取得或設定元素的最大寬度限制。Gets or sets the maximum width constraint of the element.

(Inherited from FrameworkElement)
MinHeight MinHeight MinHeight MinHeight

取得或設定元素的最小高度限制。Gets or sets the minimum height constraint of the element.

(Inherited from FrameworkElement)
MinLines MinLines MinLines MinLines

取得或設定可看見的最小行數。Gets or sets the minimum number of visible lines.

MinWidth MinWidth MinWidth MinWidth

取得或設定元素的最小寬度限制。Gets or sets the minimum width constraint of the element.

(Inherited from FrameworkElement)
Name Name Name Name

取得或設定項目的識別名稱。Gets or sets the identifying name of the element. 此名稱提供參考,以便程式碼後置 (例如事件處理常式程式碼) 可以在 XAMLXAML 處理器處理期間建構標記項目之後參考此項目。The name provides a reference so that code-behind, such as event handler code, can refer to a markup element after it is constructed during processing by a XAMLXAML processor.

(Inherited from FrameworkElement)
Opacity Opacity Opacity Opacity

取得或設定套用至整個 UIElement (在 使用者介面 (UI)user interface (UI) 中呈現時) 的不透明度因數。Gets or sets the opacity factor applied to the entire UIElement when it is rendered in the 使用者介面 (UI)user interface (UI). 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
OpacityMask OpacityMask OpacityMask 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.

(Inherited from UIElement)
OverridesDefaultStyle OverridesDefaultStyle OverridesDefaultStyle OverridesDefaultStyle

取得或設定此元素的樣式屬性是否來自佈景主題樣式的值。Gets or sets a value that indicates whether this element incorporates style properties from theme styles.

(Inherited from FrameworkElement)
Padding Padding Padding Padding

取得或設定控制項內部的邊框間距。Gets or sets the padding inside a control.

(Inherited from Control)
Parent Parent Parent Parent

取得這個項目的邏輯父項目。Gets the logical parent element of this element.

(Inherited from FrameworkElement)
PersistId PersistId PersistId PersistId

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

(Inherited from UIElement)
RenderSize RenderSize RenderSize RenderSize

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

(Inherited from UIElement)
RenderTransform RenderTransform RenderTransform RenderTransform

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

(Inherited from UIElement)
RenderTransformOrigin RenderTransformOrigin RenderTransformOrigin RenderTransformOrigin

取得或設定 RenderTransform (相對於項目邊界) 宣告任何可能呈現轉換的中心點。Gets or sets the center point of any possible render transform declared by RenderTransform, relative to the bounds of the element. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
Resources Resources Resources Resources

取得或設定在本機定義的資源字典。Gets or sets the locally-defined resource dictionary.

(Inherited from FrameworkElement)
SelectedText SelectedText SelectedText SelectedText

取得或設定文字方塊中目前選取項目的內容。Gets or sets the content of the current selection in the text box.

SelectionBrush SelectionBrush SelectionBrush SelectionBrush

取得或設定會反白顯示所選取文字的筆刷。Gets or sets the brush that highlights selected text.

(Inherited from TextBoxBase)
SelectionLength SelectionLength SelectionLength SelectionLength

取得或設定值,這個值表示文字方塊中目前選取範圍的字元數。Gets or sets a value indicating the number of characters in the current selection in the text box.

SelectionOpacity SelectionOpacity SelectionOpacity SelectionOpacity

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

(Inherited from TextBoxBase)
SelectionStart SelectionStart SelectionStart SelectionStart

針對目前選取範圍的開頭,取得或設定字元索引。Gets or sets a character index for the beginning of the current selection.

SelectionTextBrush SelectionTextBrush SelectionTextBrush SelectionTextBrush

取得或設定值,這個值會定義用於所選文字的筆刷。Gets or sets a value that defines the brush used for selected text.

(Inherited from TextBoxBase)
SnapsToDevicePixels SnapsToDevicePixels SnapsToDevicePixels SnapsToDevicePixels

取得或設定值,該值判斷這個項目的呈現在呈現期間是否該使用裝置特定像素的設定。Gets or sets a value that determines whether rendering for this element should use device-specific pixel settings during rendering. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
SpellCheck SpellCheck SpellCheck SpellCheck

取得 SpellCheck 物件,該物件可提供對 TextBoxBaseRichTextBox 文字內容之拼字錯誤的存取權。Gets a SpellCheck object that provides access to spelling errors in the text contents of a TextBoxBase or RichTextBox.

(Inherited from TextBoxBase)
Style Style Style Style

取得或設定這個項目呈現時要使用的樣式。Gets or sets the style used by this element when it is rendered.

(Inherited from FrameworkElement)
StylusPlugIns StylusPlugIns StylusPlugIns StylusPlugIns

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

(Inherited from UIElement)
TabIndex TabIndex TabIndex TabIndex

取得或設定值,此值會決定當使用者使用 TAB 鍵巡覽控制項時,項目接收焦點的順序。Gets or sets a value that determines the order in which elements receive focus when the user navigates through controls by using the TAB key.

(Inherited from Control)
Tag Tag Tag Tag

取得或設定可以用來儲存關於此元素自訂資訊的任意物件值。Gets or sets an arbitrary object value that can be used to store custom information about this element.

(Inherited from FrameworkElement)
Template Template Template Template

取得或設定控制項範本。Gets or sets a control template.

(Inherited from Control)
TemplatedParent TemplatedParent TemplatedParent TemplatedParent

取得這個項目的範本父代參考。Gets a reference to the template parent of this element. 如果項目不是透過範本建立,則這個屬性無關。This property is not relevant if the element was not created through a template.

(Inherited from FrameworkElement)
Text Text Text Text

取得或設定文字方塊的文字內容。Gets or sets the text contents of the text box.

TextAlignment TextAlignment TextAlignment TextAlignment

取得或設定文字方塊內容的水平對齊。Gets or sets the horizontal alignment of the contents of the text box.

TextDecorations TextDecorations TextDecorations TextDecorations

取得要套用至文字方塊的文字裝飾。Gets the text decorations to apply to the text box.

TextWrapping TextWrapping TextWrapping TextWrapping

取得或設定文字方塊如何包圍文字。Gets or sets how the text box should wrap text.

ToolTip ToolTip ToolTip ToolTip

取得或設定工具提示物件,該物件會為使用者介面 (UI)user interface (UI) 中的這個項目而顯示。Gets or sets the tool-tip object that is displayed for this element in the 使用者介面 (UI)user interface (UI).

(Inherited from FrameworkElement)
TouchesCaptured TouchesCaptured TouchesCaptured TouchesCaptured

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

(Inherited from UIElement)
TouchesCapturedWithin TouchesCapturedWithin TouchesCapturedWithin TouchesCapturedWithin

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

(Inherited from UIElement)
TouchesDirectlyOver TouchesDirectlyOver TouchesDirectlyOver TouchesDirectlyOver

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

(Inherited from UIElement)
TouchesOver TouchesOver TouchesOver TouchesOver

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

(Inherited from UIElement)
Triggers Triggers Triggers Triggers

取得直接在這個項目或子項目中建立的觸發程序集合。Gets the collection of triggers established directly on this element, or in child elements.

(Inherited from FrameworkElement)
Typography Typography Typography Typography

針對文字方塊的文字內容,取得目前有效的印刷樣式變化。Gets the currently effective typography variations for the text contents of the text box.

Uid Uid Uid Uid

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

(Inherited from UIElement)
UndoLimit UndoLimit UndoLimit UndoLimit

取得或設定復原佇列中儲存的動作數目。Gets or sets the number of actions stored in the undo queue.

(Inherited from TextBoxBase)
UseLayoutRounding UseLayoutRounding UseLayoutRounding UseLayoutRounding

取得或設定值,指出配置進位是否應該在配置期間套用到這個項目的大小和位置。Gets or sets a value that indicates whether layout rounding should be applied to this element's size and position during layout.

(Inherited from FrameworkElement)
VerticalAlignment VerticalAlignment VerticalAlignment VerticalAlignment

取得或設定套用至此項目在父項目 (例如面板或項目控制項) 中組成時的垂直對齊特性。Gets or sets the vertical alignment characteristics applied to this element when it is composed within a parent element such as a panel or items control.

(Inherited from FrameworkElement)
VerticalContentAlignment VerticalContentAlignment VerticalContentAlignment VerticalContentAlignment

取得或設定控制項內容的垂直對齊。Gets or sets the vertical alignment of the control's content.

(Inherited from Control)
VerticalOffset VerticalOffset VerticalOffset VerticalOffset

取得或設定垂直捲軸的位置。Gets or sets the vertical scroll position.

(Inherited from TextBoxBase)
VerticalScrollBarVisibility VerticalScrollBarVisibility VerticalScrollBarVisibility VerticalScrollBarVisibility

取得或設定值,這個值表示是否要顯示垂直捲軸。Gets or sets a value that indicates whether a vertical scroll bar is shown.

(Inherited from TextBoxBase)
ViewportHeight ViewportHeight ViewportHeight ViewportHeight

取得可捲動內容區域的垂直大小。Gets the vertical size of the scrollable content area.

(Inherited from TextBoxBase)
ViewportWidth ViewportWidth ViewportWidth ViewportWidth

取得可捲動內容區域的水平大小。Gets the horizontal size of the scrollable content area.

(Inherited from TextBoxBase)
Visibility Visibility Visibility Visibility

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

(Inherited from UIElement)
VisualBitmapEffect VisualBitmapEffect VisualBitmapEffect VisualBitmapEffect

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

(Inherited from Visual)
VisualBitmapEffectInput VisualBitmapEffectInput VisualBitmapEffectInput VisualBitmapEffectInput

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

(Inherited from Visual)
VisualBitmapScalingMode VisualBitmapScalingMode VisualBitmapScalingMode VisualBitmapScalingMode

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

(Inherited from Visual)
VisualCacheMode VisualCacheMode VisualCacheMode VisualCacheMode

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

(Inherited from Visual)
VisualChildrenCount VisualChildrenCount VisualChildrenCount VisualChildrenCount

取得這個項目內的視覺化子項目數。Gets the number of visual child elements within this element.

(Inherited from FrameworkElement)
VisualClearTypeHint VisualClearTypeHint VisualClearTypeHint VisualClearTypeHint

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

(Inherited from Visual)
VisualClip VisualClip VisualClip VisualClip

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

(Inherited from Visual)
VisualEdgeMode VisualEdgeMode VisualEdgeMode VisualEdgeMode

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

(Inherited from Visual)
VisualEffect VisualEffect VisualEffect VisualEffect

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

(Inherited from Visual)
VisualOffset VisualOffset VisualOffset VisualOffset

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

(Inherited from Visual)
VisualOpacity VisualOpacity VisualOpacity VisualOpacity

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

(Inherited from Visual)
VisualOpacityMask VisualOpacityMask VisualOpacityMask VisualOpacityMask

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

(Inherited from Visual)
VisualParent VisualParent VisualParent VisualParent

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

(Inherited from Visual)
VisualScrollableAreaClip VisualScrollableAreaClip VisualScrollableAreaClip VisualScrollableAreaClip

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

(Inherited from Visual)
VisualTextHintingMode VisualTextHintingMode VisualTextHintingMode VisualTextHintingMode

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

(Inherited from Visual)
VisualTextRenderingMode VisualTextRenderingMode VisualTextRenderingMode VisualTextRenderingMode

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

(Inherited from Visual)
VisualTransform VisualTransform VisualTransform VisualTransform

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

(Inherited from Visual)
VisualXSnappingGuidelines VisualXSnappingGuidelines VisualXSnappingGuidelines VisualXSnappingGuidelines

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

(Inherited from Visual)
VisualYSnappingGuidelines VisualYSnappingGuidelines VisualYSnappingGuidelines VisualYSnappingGuidelines

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

(Inherited from Visual)
Width Width Width Width

取得或設定元素的寬度。Gets or sets the width of the element.

(Inherited from FrameworkElement)

方法

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

加入所指定路由事件的路由事件處理常式,會將此處理常式加入目前項目的處理常式集合中。Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element.

(Inherited from UIElement)
AddHandler(RoutedEvent, Delegate, Boolean) AddHandler(RoutedEvent, Delegate, Boolean) AddHandler(RoutedEvent, Delegate, Boolean) AddHandler(RoutedEvent, Delegate, Boolean)

加入所指定路由事件的路由事件處理常式,會將此處理常式加入目前項目的處理常式集合中。Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. handledEventsToo 指定為 true,為已標示為由事件路由上另一個項目處理的事件叫用提供的處理常式。Specify handledEventsToo as true to have the provided handler be invoked for routed event that had already been marked as handled by another element along the event route.

(Inherited from UIElement)
AddLogicalChild(Object) AddLogicalChild(Object) AddLogicalChild(Object) AddLogicalChild(Object)

將所提供的物件加入至此項目的邏輯樹狀結構。Adds the provided object to the logical tree of this element.

(Inherited from FrameworkElement)
AddToEventRoute(EventRoute, RoutedEventArgs) AddToEventRoute(EventRoute, RoutedEventArgs) AddToEventRoute(EventRoute, RoutedEventArgs) AddToEventRoute(EventRoute, RoutedEventArgs)

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

(Inherited from UIElement)
AddVisualChild(Visual) AddVisualChild(Visual) AddVisualChild(Visual) AddVisualChild(Visual)

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

(Inherited from Visual)
AppendText(String) AppendText(String) AppendText(String) AppendText(String)

將字串附加至文字控制項的內容。Appends a string to the contents of a text control.

(Inherited from TextBoxBase)
ApplyAnimationClock(DependencyProperty, AnimationClock) ApplyAnimationClock(DependencyProperty, AnimationClock) ApplyAnimationClock(DependencyProperty, AnimationClock) ApplyAnimationClock(DependencyProperty, AnimationClock)

將動畫套用至這個項目上所指定的相依性屬性。Applies an animation to a specified dependency property on this element. 任何現有動畫都會停止並取代為新的動畫。Any existing animations are stopped and replaced with the new animation.

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

將動畫套用至這個項目上所指定的相依性屬性,且可以指定此屬性已經有執行中的動畫時會發生哪種情況。Applies an animation to a specified dependency property on this element, with the ability to specify what happens if the property already has a running animation.

(Inherited from UIElement)
ApplyTemplate() ApplyTemplate() ApplyTemplate() ApplyTemplate()

如有必要,則建置目前範本的視覺化樹狀結構,並傳回值,指出此呼叫是否已重建視覺化樹狀結構。Builds the current template's visual tree if necessary, and returns a value that indicates whether the visual tree was rebuilt by this call.

(Inherited from FrameworkElement)
Arrange(Rect) Arrange(Rect) Arrange(Rect) Arrange(Rect)

放置子項目,並且判斷 UIElement 的大小。Positions child elements and determines a size for a UIElement. 父項目從 ArrangeCore(Rect) 實作 (或 WPF 架構層級對等項目) 中呼叫此方法,以形成遞迴配置更新。Parent elements call this method from their ArrangeCore(Rect) implementation (or a WPF framework-level equivalent) to form a recursive layout update. 這個方法會構成配置更新的第二個階段。This method constitutes the second pass of a layout update.

(Inherited from UIElement)
ArrangeCore(Rect) ArrangeCore(Rect) ArrangeCore(Rect) ArrangeCore(Rect)

實作 ArrangeCore(Rect) (在 UIElement 內定義為 Virtual),並密封實作。Implements ArrangeCore(Rect) (defined as virtual in UIElement) and seals the implementation.

(Inherited from FrameworkElement)
ArrangeOverride(Size) ArrangeOverride(Size) ArrangeOverride(Size) ArrangeOverride(Size)

呼叫以排列 Control 物件內容,並調整大小。Called to arrange and size the content of a Control object.

(Inherited from Control)
BeginAnimation(DependencyProperty, AnimationTimeline) BeginAnimation(DependencyProperty, AnimationTimeline) BeginAnimation(DependencyProperty, AnimationTimeline) BeginAnimation(DependencyProperty, AnimationTimeline)

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

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

針對此項目上指定的動畫屬性啟動特定動畫,且可以選擇指定如果屬性已經有執行中的動畫時會發生何種情況。Starts a specific animation for a specified animated property on this element, with the option of specifying what happens if the property already has a running animation.

(Inherited from UIElement)
BeginChange() BeginChange() BeginChange() BeginChange()

開始變更區塊。Begins a change block.

(Inherited from TextBoxBase)
BeginInit() BeginInit() BeginInit() BeginInit()

啟動這個項目的初始化處理序 (Process)。Starts the initialization process for this element.

(Inherited from FrameworkElement)
BeginStoryboard(Storyboard) BeginStoryboard(Storyboard) BeginStoryboard(Storyboard) BeginStoryboard(Storyboard)

開始提供之腳本中包含的動作順序。Begins the sequence of actions that are contained in the provided storyboard.

(Inherited from FrameworkElement)
BeginStoryboard(Storyboard, HandoffBehavior) BeginStoryboard(Storyboard, HandoffBehavior) BeginStoryboard(Storyboard, HandoffBehavior) BeginStoryboard(Storyboard, HandoffBehavior)

使用若屬性已經顯示動畫時應發生之情形的指定選項,開始提供之腳本中包含的動作順序。Begins the sequence of actions contained in the provided storyboard, with options specified for what should happen if the property is already animated.

(Inherited from FrameworkElement)
BeginStoryboard(Storyboard, HandoffBehavior, Boolean) BeginStoryboard(Storyboard, HandoffBehavior, Boolean) BeginStoryboard(Storyboard, HandoffBehavior, Boolean) BeginStoryboard(Storyboard, HandoffBehavior, Boolean)

使用控制啟動後之動畫的指定狀態,開始提供之腳本中包含的動作順序。Begins the sequence of actions contained in the provided storyboard, with specified state for control of the animation after it is started.

(Inherited from FrameworkElement)
BringIntoView() BringIntoView() BringIntoView() BringIntoView()

在內含此項目的任何可捲動區域內,嘗試將此項目帶入檢視。Attempts to bring this element into view, within any scrollable regions it is contained within.

(Inherited from FrameworkElement)
BringIntoView(Rect) BringIntoView(Rect) BringIntoView(Rect) BringIntoView(Rect)

在內含此項目的任何可捲動區域內,嘗試將此項目所提供的區域大小帶入檢視。Attempts to bring the provided region size of this element into view, within any scrollable regions it is contained within.

(Inherited from FrameworkElement)
CaptureMouse() CaptureMouse() CaptureMouse() CaptureMouse()

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

(Inherited from UIElement)
CaptureStylus() CaptureStylus() CaptureStylus() CaptureStylus()

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

(Inherited from UIElement)
CaptureTouch(TouchDevice) CaptureTouch(TouchDevice) CaptureTouch(TouchDevice) CaptureTouch(TouchDevice)

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

(Inherited from UIElement)
CheckAccess() CheckAccess() CheckAccess() CheckAccess()

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

(Inherited from DispatcherObject)
Clear() Clear() Clear() Clear()

將所有內容從文字方塊中清除。Clears all the content from the text box.

ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty)

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

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

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

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

強制轉型所指定相依性屬性的值。Coerces the value of the specified dependency property. 叫用存在於呼叫 CoerceValueCallback 上相依性屬性之屬性中繼資料內所指定的任何 DependencyObject 函式,就可以達到這一點。This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject.

(Inherited from DependencyObject)
Copy() Copy() Copy() Copy()

將文字編輯控制項的目前選項文字複製到 ClipboardCopies the current selection of the text editing control to the Clipboard.

(Inherited from TextBoxBase)
Cut() Cut() Cut() Cut()

從文字編輯控制項中移除目前選項,並將其複製到 ClipboardRemoves the current selection from the text editing control and copies it to the Clipboard.

(Inherited from TextBoxBase)
DeclareChangeBlock() DeclareChangeBlock() DeclareChangeBlock() DeclareChangeBlock()

建立變更區塊。Creates a change block.

(Inherited from TextBoxBase)
EndChange() EndChange() EndChange() EndChange()

結束變更區塊。Ends a change block.

(Inherited from TextBoxBase)
EndInit() EndInit() EndInit() EndInit()

表示項目的初始設定程序已完成。Indicates that the initialization process for the element is complete.

(Inherited from FrameworkElement)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

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

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

(Inherited from Visual)
FindName(String) FindName(String) FindName(String) FindName(String)

尋找具有所提供之識別項名稱的項目。Finds an element that has the provided identifier name.

(Inherited from FrameworkElement)
FindResource(Object) FindResource(Object) FindResource(Object) FindResource(Object)

以指定的索引鍵搜尋資源,如果找不到要求的資源時會擲回例外狀況。Searches for a resource with the specified key, and throws an exception if the requested resource is not found.

(Inherited from FrameworkElement)
Focus() Focus() Focus() Focus()

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

(Inherited from UIElement)
GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty)

傳回這個項目上指定屬性的基底屬性值,不管任何執行中的可能動畫值,或停止動畫。Returns the base property value for the specified property on this element, disregarding any possible animated value from a running or stopped animation.

(Inherited from UIElement)
GetBindingExpression(DependencyProperty) GetBindingExpression(DependencyProperty) GetBindingExpression(DependencyProperty) GetBindingExpression(DependencyProperty)

傳回 BindingExpression,代表指定屬性的繫結。Returns the BindingExpression that represents the binding on the specified property.

(Inherited from FrameworkElement)
GetCharacterIndexFromLineIndex(Int32) GetCharacterIndexFromLineIndex(Int32) GetCharacterIndexFromLineIndex(Int32) GetCharacterIndexFromLineIndex(Int32)

針對指定行中的第一個字元,傳回以零起始的字元索引。Returns the zero-based character index for the first character in the specified line.

GetCharacterIndexFromPoint(Point, Boolean) GetCharacterIndexFromPoint(Point, Boolean) GetCharacterIndexFromPoint(Point, Boolean) GetCharacterIndexFromPoint(Point, Boolean)

傳回最靠近指定點之字元的索引 (以零起始)。Returns the zero-based index of the character that is closest to the specified point.

GetFirstVisibleLineIndex() GetFirstVisibleLineIndex() GetFirstVisibleLineIndex() GetFirstVisibleLineIndex()

針對文字方塊中目前可看見的第一行,傳回行索引。Returns the line index for the first line that is currently visible in the text box.

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

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

(Inherited from DependencyObject)
GetLastVisibleLineIndex() GetLastVisibleLineIndex() GetLastVisibleLineIndex() GetLastVisibleLineIndex()

針對文字方塊中目前可看見的最後一行,傳回行索引。Returns the line index for the last line that is currently visible in the text box.

GetLayoutClip(Size) GetLayoutClip(Size) GetLayoutClip(Size) GetLayoutClip(Size)

傳回裁剪遮罩的幾何。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.

(Inherited from FrameworkElement)
GetLineIndexFromCharacterIndex(Int32) GetLineIndexFromCharacterIndex(Int32) GetLineIndexFromCharacterIndex(Int32) GetLineIndexFromCharacterIndex(Int32)

針對包含所指定之字元索引的行,傳回以零起始的行索引。Returns the zero-based line index for the line that contains the specified character index.

GetLineLength(Int32) GetLineLength(Int32) GetLineLength(Int32) GetLineLength(Int32)

傳回指定行中的字元數目。Returns the number of characters in the specified line.

GetLineText(Int32) GetLineText(Int32) GetLineText(Int32) GetLineText(Int32)

傳回目前顯示在指定行上的文字。Returns the text that is currently displayed on the specified line.

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

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

(Inherited from DependencyObject)
GetNextSpellingErrorCharacterIndex(Int32, LogicalDirection) GetNextSpellingErrorCharacterIndex(Int32, LogicalDirection) GetNextSpellingErrorCharacterIndex(Int32, LogicalDirection) GetNextSpellingErrorCharacterIndex(Int32, LogicalDirection)

針對文字方塊內容中的下一個拼字錯誤,傳回開頭字元索引。Returns the beginning character index for the next spelling error in the contents of the text box.

GetRectFromCharacterIndex(Int32) GetRectFromCharacterIndex(Int32) GetRectFromCharacterIndex(Int32) GetRectFromCharacterIndex(Int32)

傳回位於所指定索引之字元前端邊緣的周框。Returns the rectangle for the leading edge of the character at the specified index.

GetRectFromCharacterIndex(Int32, Boolean) GetRectFromCharacterIndex(Int32, Boolean) GetRectFromCharacterIndex(Int32, Boolean) GetRectFromCharacterIndex(Int32, Boolean)

傳回位於所指定索引之字元前端或尾端邊緣的周框。Returns the rectangle for the leading or trailing edge of the character at the specified index.

GetSpellingError(Int32) GetSpellingError(Int32) GetSpellingError(Int32) GetSpellingError(Int32)

傳回與指定字元索引處之任何拼字錯誤相關聯的 SpellingError 物件。Returns a SpellingError object associated with any spelling error at the specified character index.

GetSpellingErrorLength(Int32) GetSpellingErrorLength(Int32) GetSpellingErrorLength(Int32) GetSpellingErrorLength(Int32)

傳回包含所指定字元之任何拼字錯誤的長度。Returns the length of any spelling error that includes the specified character.

GetSpellingErrorStart(Int32) GetSpellingErrorStart(Int32) GetSpellingErrorStart(Int32) GetSpellingErrorStart(Int32)

針對包含指定字元的任何拼字錯誤,傳回開頭字元索引。Returns the beginning character index for any spelling error that includes the specified character.

GetTemplateChild(String) GetTemplateChild(String) GetTemplateChild(String) GetTemplateChild(String)

傳回具現化 ControlTemplate 視覺化樹狀結構中的具名項目。Returns the named element in the visual tree of an instantiated ControlTemplate.

(Inherited from FrameworkElement)
GetType() GetType() GetType() GetType()

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

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

如果沒有視覺父代,則傳回這個項目的替代邏輯父代。Returns an alternative logical parent for this element if there is no visual parent.

(Inherited from FrameworkElement)
GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty)

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

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

覆寫 GetVisualChild(Int32),並從子項目集合傳回指定索引處的子系。Overrides GetVisualChild(Int32), and returns a child at the specified index from a collection of child elements.

(Inherited from FrameworkElement)
HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters)

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

(Inherited from UIElement)
HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters)

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

(Inherited from UIElement)
InputHitTest(Point) InputHitTest(Point) InputHitTest(Point) InputHitTest(Point)

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

(Inherited from UIElement)
InvalidateArrange() InvalidateArrange() InvalidateArrange() InvalidateArrange()

使項目的排列狀態 (配置) 失效。Invalidates the arrange state (layout) for the element. 失效之後,項目將更新其配置,而且,除非之後由 UpdateLayout() 強制執行,否則這項作業會以非同步方式發生。After the invalidation, the element will have its layout updated, which will occur asynchronously unless subsequently forced by UpdateLayout().

(Inherited from UIElement)
InvalidateMeasure() InvalidateMeasure() InvalidateMeasure() InvalidateMeasure()

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

(Inherited from UIElement)
InvalidateProperty(DependencyProperty) InvalidateProperty(DependencyProperty) InvalidateProperty(DependencyProperty) InvalidateProperty(DependencyProperty)

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

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

讓項目的呈現失效,並強制全新的配置傳遞。Invalidates the rendering of the element, and forces a complete new layout pass. 完成配置循環之後,會呼叫 OnRender(DrawingContext)OnRender(DrawingContext) is called after the layout cycle is completed.

(Inherited from UIElement)
IsAncestorOf(DependencyObject) IsAncestorOf(DependencyObject) IsAncestorOf(DependencyObject) IsAncestorOf(DependencyObject)

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

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

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

(Inherited from Visual)
LineDown() LineDown() LineDown() LineDown()

以一行為單位向下捲動控制項的內容。Scrolls the contents of the control down by one line.

(Inherited from TextBoxBase)
LineLeft() LineLeft() LineLeft() LineLeft()

以一行為單位向左捲動控制項的內容。Scrolls the contents of the control to the left by one line.

(Inherited from TextBoxBase)
LineRight() LineRight() LineRight() LineRight()

以一行為單位向右捲動控制項的內容。Scrolls the contents of the control to the right by one line.

(Inherited from TextBoxBase)
LineUp() LineUp() LineUp() LineUp()

以一行為單位向上捲動控制項的內容。Scrolls the contents of the control upward by one line.

(Inherited from TextBoxBase)
LockCurrentUndoUnit() LockCurrentUndoUnit() LockCurrentUndoUnit() LockCurrentUndoUnit()

鎖住應用程式復原堆疊中的最新復原單位。Locks the most recent undo unit of the undo stack of the application. 這可避免已鎖住的單位被後續加入的其他復原單位所合併。This prevents the locked unit from being merged with undo units that are added subsequently.

(Inherited from TextBoxBase)
Measure(Size) Measure(Size) Measure(Size) Measure(Size)

更新 UIElementDesiredSizeUpdates the DesiredSize of a UIElement. 父項目從本身的 MeasureCore(Size) 實作中呼叫此方法,以形成遞迴配置更新。Parent elements call this method from their own MeasureCore(Size) implementations to form a recursive layout update. 呼叫此方法即構成配置更新的第一次傳遞 (「量值」傳遞)。Calling this method constitutes the first pass (the "Measure" pass) of a layout update.

(Inherited from UIElement)
MeasureCore(Size) MeasureCore(Size) MeasureCore(Size) MeasureCore(Size)

FrameworkElement 實作基本的測量傳遞配置系統行為。Implements basic measure-pass layout system behavior for FrameworkElement.

(Inherited from FrameworkElement)
MeasureOverride(Size) MeasureOverride(Size) MeasureOverride(Size) MeasureOverride(Size)

將文字方塊縮放為其內容大小。Sizes the text box to its content.

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

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

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

以所提供的周遊方向,將鍵盤焦點從這個項目移到其他項目。Moves the keyboard focus away from this element and to another element in a provided traversal direction.

(Inherited from FrameworkElement)
OnAccessKey(AccessKeyEventArgs) OnAccessKey(AccessKeyEventArgs) OnAccessKey(AccessKeyEventArgs) OnAccessKey(AccessKeyEventArgs)

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

(Inherited from UIElement)
OnApplyTemplate() OnApplyTemplate() OnApplyTemplate() OnApplyTemplate()

在套用控制項樣板時呼叫。Is called when a control template is applied.

(Inherited from TextBoxBase)
OnChildDesiredSizeChanged(UIElement) OnChildDesiredSizeChanged(UIElement) OnChildDesiredSizeChanged(UIElement) OnChildDesiredSizeChanged(UIElement)

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

(Inherited from UIElement)
OnContextMenuClosing(ContextMenuEventArgs) OnContextMenuClosing(ContextMenuEventArgs) OnContextMenuClosing(ContextMenuEventArgs) OnContextMenuClosing(ContextMenuEventArgs)

當未處理的 ContextMenuClosing 路由事件到達其路由中的這個類別時,便會叫用此方法。Invoked whenever an unhandled ContextMenuClosing routed event reaches this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from FrameworkElement)
OnContextMenuOpening(ContextMenuEventArgs) OnContextMenuOpening(ContextMenuEventArgs) OnContextMenuOpening(ContextMenuEventArgs) OnContextMenuOpening(ContextMenuEventArgs)

每當未處理的 ContextMenuOpening 路由事件達到其路由中的這個類別時呼叫。Called whenever an unhandled ContextMenuOpening routed event reaches this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from TextBoxBase)
OnCreateAutomationPeer() OnCreateAutomationPeer() OnCreateAutomationPeer() OnCreateAutomationPeer()

建立並傳回文字方塊的 AutomationPeer 物件。Creates and returns an AutomationPeer object for the text box.

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

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

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

每當未處理的 DragEnter 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled DragEnter attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from TextBoxBase)
OnDragLeave(DragEventArgs) OnDragLeave(DragEventArgs) OnDragLeave(DragEventArgs) OnDragLeave(DragEventArgs)

每當未處理的 DragLeave 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled DragLeave attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from TextBoxBase)
OnDragOver(DragEventArgs) OnDragOver(DragEventArgs) OnDragOver(DragEventArgs) OnDragOver(DragEventArgs)

每當未處理的 DragOver 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled DragOver attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from TextBoxBase)
OnDrop(DragEventArgs) OnDrop(DragEventArgs) OnDrop(DragEventArgs) OnDrop(DragEventArgs)

每當未處理的 DragEnter 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled DragEnter attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from TextBoxBase)
OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs)

每當未處理的 GiveFeedback 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled GiveFeedback attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from TextBoxBase)
OnGotFocus(RoutedEventArgs) OnGotFocus(RoutedEventArgs) OnGotFocus(RoutedEventArgs) OnGotFocus(RoutedEventArgs)

當未處理的 GotFocus 事件到達其路由中的這個項目時,便會叫用此方法。Invoked whenever an unhandled GotFocus event reaches this element in its route.

(Inherited from FrameworkElement)
OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)

每當未處理的 GotKeyboardFocus 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled GotKeyboardFocus attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from TextBoxBase)
OnGotMouseCapture(MouseEventArgs) OnGotMouseCapture(MouseEventArgs) OnGotMouseCapture(MouseEventArgs) OnGotMouseCapture(MouseEventArgs)

當未處理的 GotMouseCapture 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled GotMouseCapture attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnGotStylusCapture(StylusEventArgs) OnGotStylusCapture(StylusEventArgs) OnGotStylusCapture(StylusEventArgs) OnGotStylusCapture(StylusEventArgs)

當未處理的 GotStylusCapture 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled GotStylusCapture attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnGotTouchCapture(TouchEventArgs) OnGotTouchCapture(TouchEventArgs) OnGotTouchCapture(TouchEventArgs) OnGotTouchCapture(TouchEventArgs)

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

(Inherited from UIElement)
OnInitialized(EventArgs) OnInitialized(EventArgs) OnInitialized(EventArgs) OnInitialized(EventArgs)

引發 Initialized 事件。Raises the Initialized event. 每當 IsInitialized 在內部設為 true 便會叫用此方法。This method is invoked whenever IsInitialized is set to true internally.

(Inherited from FrameworkElement)
OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs)

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

(Inherited from UIElement)
OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)

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

(Inherited from UIElement)
OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs) OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs) OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs) OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs)

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

(Inherited from UIElement)
OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs)

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

(Inherited from UIElement)
OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs)

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

(Inherited from UIElement)
OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs) OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs) OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs) OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs)

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

(Inherited from UIElement)
OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs)

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

(Inherited from UIElement)
OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs)

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

(Inherited from UIElement)
OnKeyDown(KeyEventArgs) OnKeyDown(KeyEventArgs) OnKeyDown(KeyEventArgs) OnKeyDown(KeyEventArgs)

每當未處理的 KeyDown 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled KeyDown attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from TextBoxBase)
OnKeyUp(KeyEventArgs) OnKeyUp(KeyEventArgs) OnKeyUp(KeyEventArgs) OnKeyUp(KeyEventArgs)

每當未處理的 KeyUp 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled KeyUp attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from TextBoxBase)
OnLostFocus(RoutedEventArgs) OnLostFocus(RoutedEventArgs) OnLostFocus(RoutedEventArgs) OnLostFocus(RoutedEventArgs)

使用所提供的引數,來引發 LostFocus 事件。Raises the LostFocus event (using the provided arguments).

(Inherited from TextBoxBase)
OnLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)

每當未處理的 LostKeyboardFocus 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled LostKeyboardFocus attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from TextBoxBase)
OnLostMouseCapture(MouseEventArgs) OnLostMouseCapture(MouseEventArgs) OnLostMouseCapture(MouseEventArgs) OnLostMouseCapture(MouseEventArgs)

當未處理的 LostMouseCapture 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled LostMouseCapture attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnLostStylusCapture(StylusEventArgs) OnLostStylusCapture(StylusEventArgs) OnLostStylusCapture(StylusEventArgs) OnLostStylusCapture(StylusEventArgs)

當未處理的 LostStylusCapture 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled LostStylusCapture attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnLostTouchCapture(TouchEventArgs) OnLostTouchCapture(TouchEventArgs) OnLostTouchCapture(TouchEventArgs) OnLostTouchCapture(TouchEventArgs)

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

(Inherited from UIElement)
OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs) OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs) OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs) OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs)

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

(Inherited from UIElement)
OnManipulationCompleted(ManipulationCompletedEventArgs) OnManipulationCompleted(ManipulationCompletedEventArgs) OnManipulationCompleted(ManipulationCompletedEventArgs) OnManipulationCompleted(ManipulationCompletedEventArgs)

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

(Inherited from UIElement)
OnManipulationDelta(ManipulationDeltaEventArgs) OnManipulationDelta(ManipulationDeltaEventArgs) OnManipulationDelta(ManipulationDeltaEventArgs) OnManipulationDelta(ManipulationDeltaEventArgs)

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

(Inherited from UIElement)
OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs) OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs) OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs) OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs)

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

(Inherited from UIElement)
OnManipulationStarted(ManipulationStartedEventArgs) OnManipulationStarted(ManipulationStartedEventArgs) OnManipulationStarted(ManipulationStartedEventArgs) OnManipulationStarted(ManipulationStartedEventArgs)

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

(Inherited from UIElement)
OnManipulationStarting(ManipulationStartingEventArgs) OnManipulationStarting(ManipulationStartingEventArgs) OnManipulationStarting(ManipulationStartingEventArgs) OnManipulationStarting(ManipulationStartingEventArgs)

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

(Inherited from UIElement)
OnMouseDoubleClick(MouseButtonEventArgs) OnMouseDoubleClick(MouseButtonEventArgs) OnMouseDoubleClick(MouseButtonEventArgs) OnMouseDoubleClick(MouseButtonEventArgs)

引發 MouseDoubleClick 路由事件。Raises the MouseDoubleClick routed event.

(Inherited from Control)
OnMouseDown(MouseButtonEventArgs) OnMouseDown(MouseButtonEventArgs) OnMouseDown(MouseButtonEventArgs) OnMouseDown(MouseButtonEventArgs)

每當未處理的 MouseDown 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled MouseDown attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from TextBoxBase)
OnMouseEnter(MouseEventArgs) OnMouseEnter(MouseEventArgs) OnMouseEnter(MouseEventArgs) OnMouseEnter(MouseEventArgs)

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

(Inherited from UIElement)
OnMouseLeave(MouseEventArgs) OnMouseLeave(MouseEventArgs) OnMouseLeave(MouseEventArgs) OnMouseLeave(MouseEventArgs)

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

(Inherited from UIElement)
OnMouseLeftButtonDown(MouseButtonEventArgs) OnMouseLeftButtonDown(MouseButtonEventArgs) OnMouseLeftButtonDown(MouseButtonEventArgs) OnMouseLeftButtonDown(MouseButtonEventArgs)

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

(Inherited from UIElement)
OnMouseLeftButtonUp(MouseButtonEventArgs) OnMouseLeftButtonUp(MouseButtonEventArgs) OnMouseLeftButtonUp(MouseButtonEventArgs) OnMouseLeftButtonUp(MouseButtonEventArgs)

當未處理的 MouseLeftButtonUp 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled MouseLeftButtonUp routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnMouseMove(MouseEventArgs) OnMouseMove(MouseEventArgs) OnMouseMove(MouseEventArgs) OnMouseMove(MouseEventArgs)

每當未處理的 MouseMove 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled MouseMove attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from TextBoxBase)
OnMouseRightButtonDown(MouseButtonEventArgs) OnMouseRightButtonDown(MouseButtonEventArgs) OnMouseRightButtonDown(MouseButtonEventArgs) OnMouseRightButtonDown(MouseButtonEventArgs)

當未處理的 MouseRightButtonDown 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled MouseRightButtonDown routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnMouseRightButtonUp(MouseButtonEventArgs) OnMouseRightButtonUp(MouseButtonEventArgs) OnMouseRightButtonUp(MouseButtonEventArgs) OnMouseRightButtonUp(MouseButtonEventArgs)

當未處理的 MouseRightButtonUp 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled MouseRightButtonUp routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnMouseUp(MouseButtonEventArgs) OnMouseUp(MouseButtonEventArgs) OnMouseUp(MouseButtonEventArgs) OnMouseUp(MouseButtonEventArgs)

當未處理的 MouseUp 事件到達衍生自其路由中這個類別的項目時,便會叫用此方法。Invoked whenever an unhandled MouseUp event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from TextBoxBase)
OnMouseWheel(MouseWheelEventArgs) OnMouseWheel(MouseWheelEventArgs) OnMouseWheel(MouseWheelEventArgs) OnMouseWheel(MouseWheelEventArgs)

MouseWheel 事件路由至此類別 (或繼承自此類別的另一類別) 時呼叫。Is called when a MouseWheel event is routed to this class (or to a class that inherits from this class).

(Inherited from TextBoxBase)
OnPreviewDragEnter(DragEventArgs) OnPreviewDragEnter(DragEventArgs) OnPreviewDragEnter(DragEventArgs) OnPreviewDragEnter(DragEventArgs)

當未處理的 PreviewDragEnter 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewDragEnter attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewDragLeave(DragEventArgs) OnPreviewDragLeave(DragEventArgs) OnPreviewDragLeave(DragEventArgs) OnPreviewDragLeave(DragEventArgs)

當未處理的 PreviewDragLeave 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewDragLeave attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewDragOver(DragEventArgs) OnPreviewDragOver(DragEventArgs) OnPreviewDragOver(DragEventArgs) OnPreviewDragOver(DragEventArgs)

當未處理的 PreviewDragOver 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewDragOver attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewDrop(DragEventArgs) OnPreviewDrop(DragEventArgs) OnPreviewDrop(DragEventArgs) OnPreviewDrop(DragEventArgs)

當未處理的 PreviewDrop 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewDrop attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewGiveFeedback(GiveFeedbackEventArgs) OnPreviewGiveFeedback(GiveFeedbackEventArgs) OnPreviewGiveFeedback(GiveFeedbackEventArgs) OnPreviewGiveFeedback(GiveFeedbackEventArgs)

當未處理的 PreviewGiveFeedback 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewGiveFeedback attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs)

當未處理的 PreviewGotKeyboardFocus 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewGotKeyboardFocus attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewKeyDown(KeyEventArgs) OnPreviewKeyDown(KeyEventArgs) OnPreviewKeyDown(KeyEventArgs) OnPreviewKeyDown(KeyEventArgs)

KeyDown 發生時會呼叫。Called when the KeyDown occurs.

(Inherited from TextBoxBase)
OnPreviewKeyUp(KeyEventArgs) OnPreviewKeyUp(KeyEventArgs) OnPreviewKeyUp(KeyEventArgs) OnPreviewKeyUp(KeyEventArgs)

當未處理的 PreviewKeyUp 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewKeyUp attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs)

當未處理的 PreviewKeyDown 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewKeyDown attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewMouseDoubleClick(MouseButtonEventArgs) OnPreviewMouseDoubleClick(MouseButtonEventArgs) OnPreviewMouseDoubleClick(MouseButtonEventArgs) OnPreviewMouseDoubleClick(MouseButtonEventArgs)

引發 PreviewMouseDoubleClick 路由事件。Raises the PreviewMouseDoubleClick routed event.

(Inherited from Control)
OnPreviewMouseDown(MouseButtonEventArgs) OnPreviewMouseDown(MouseButtonEventArgs) OnPreviewMouseDown(MouseButtonEventArgs) OnPreviewMouseDown(MouseButtonEventArgs)

當未處理的 PreviewMouseDown 附加路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseDown attached routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewMouseLeftButtonDown(MouseButtonEventArgs) OnPreviewMouseLeftButtonDown(MouseButtonEventArgs) OnPreviewMouseLeftButtonDown(MouseButtonEventArgs) OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)

當未處理的 PreviewMouseLeftButtonDown 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseLeftButtonDown routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewMouseLeftButtonUp(MouseButtonEventArgs) OnPreviewMouseLeftButtonUp(MouseButtonEventArgs) OnPreviewMouseLeftButtonUp(MouseButtonEventArgs) OnPreviewMouseLeftButtonUp(MouseButtonEventArgs)

當未處理的 PreviewMouseLeftButtonUp 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseLeftButtonUp routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewMouseMove(MouseEventArgs) OnPreviewMouseMove(MouseEventArgs) OnPreviewMouseMove(MouseEventArgs) OnPreviewMouseMove(MouseEventArgs)

當未處理的 PreviewMouseMove 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseMove attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewMouseRightButtonDown(MouseButtonEventArgs) OnPreviewMouseRightButtonDown(MouseButtonEventArgs) OnPreviewMouseRightButtonDown(MouseButtonEventArgs) OnPreviewMouseRightButtonDown(MouseButtonEventArgs)

當未處理的 PreviewMouseRightButtonDown 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseRightButtonDown routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewMouseRightButtonUp(MouseButtonEventArgs) OnPreviewMouseRightButtonUp(MouseButtonEventArgs) OnPreviewMouseRightButtonUp(MouseButtonEventArgs) OnPreviewMouseRightButtonUp(MouseButtonEventArgs)

當未處理的 PreviewMouseRightButtonUp 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseRightButtonUp routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewMouseUp(MouseButtonEventArgs) OnPreviewMouseUp(MouseButtonEventArgs) OnPreviewMouseUp(MouseButtonEventArgs) OnPreviewMouseUp(MouseButtonEventArgs)

當未處理的 PreviewMouseUp 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseUp attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewMouseWheel(MouseWheelEventArgs) OnPreviewMouseWheel(MouseWheelEventArgs) OnPreviewMouseWheel(MouseWheelEventArgs) OnPreviewMouseWheel(MouseWheelEventArgs)

當未處理的 PreviewMouseWheel 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseWheel attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewQueryContinueDrag(QueryContinueDragEventArgs) OnPreviewQueryContinueDrag(QueryContinueDragEventArgs) OnPreviewQueryContinueDrag(QueryContinueDragEventArgs) OnPreviewQueryContinueDrag(QueryContinueDragEventArgs)

當未處理的 PreviewQueryContinueDrag 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewQueryContinueDrag attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewStylusButtonDown(StylusButtonEventArgs) OnPreviewStylusButtonDown(StylusButtonEventArgs) OnPreviewStylusButtonDown(StylusButtonEventArgs) OnPreviewStylusButtonDown(StylusButtonEventArgs)

當未處理的 PreviewStylusButtonDown 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewStylusButtonDown attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewStylusButtonUp(StylusButtonEventArgs) OnPreviewStylusButtonUp(StylusButtonEventArgs) OnPreviewStylusButtonUp(StylusButtonEventArgs) OnPreviewStylusButtonUp(StylusButtonEventArgs)

當未處理的 PreviewStylusButtonUp 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewStylusButtonUp attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewStylusDown(StylusDownEventArgs) OnPreviewStylusDown(StylusDownEventArgs) OnPreviewStylusDown(StylusDownEventArgs) OnPreviewStylusDown(StylusDownEventArgs)

當未處理的 PreviewStylusDown 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewStylusDown attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewStylusInAirMove(StylusEventArgs) OnPreviewStylusInAirMove(StylusEventArgs) OnPreviewStylusInAirMove(StylusEventArgs) OnPreviewStylusInAirMove(StylusEventArgs)

當未處理的 PreviewStylusInAirMove 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewStylusInAirMove attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewStylusInRange(StylusEventArgs) OnPreviewStylusInRange(StylusEventArgs) OnPreviewStylusInRange(StylusEventArgs) OnPreviewStylusInRange(StylusEventArgs)

當未處理的 PreviewStylusInRange 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewStylusInRange attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewStylusMove(StylusEventArgs) OnPreviewStylusMove(StylusEventArgs) OnPreviewStylusMove(StylusEventArgs) OnPreviewStylusMove(StylusEventArgs)

當未處理的 PreviewStylusMove 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewStylusMove attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewStylusOutOfRange(StylusEventArgs) OnPreviewStylusOutOfRange(StylusEventArgs) OnPreviewStylusOutOfRange(StylusEventArgs) OnPreviewStylusOutOfRange(StylusEventArgs)

當未處理的 PreviewStylusOutOfRange 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewStylusOutOfRange attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs) OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs) OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs) OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs)

當未處理的 PreviewStylusSystemGesture 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewStylusSystemGesture attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewStylusUp(StylusEventArgs) OnPreviewStylusUp(StylusEventArgs) OnPreviewStylusUp(StylusEventArgs) OnPreviewStylusUp(StylusEventArgs)

當未處理的 PreviewStylusUp 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewStylusUp attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewTextInput(TextCompositionEventArgs) OnPreviewTextInput(TextCompositionEventArgs) OnPreviewTextInput(TextCompositionEventArgs) OnPreviewTextInput(TextCompositionEventArgs)

當未處理的 PreviewTextInput 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewTextInput attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewTouchDown(TouchEventArgs) OnPreviewTouchDown(TouchEventArgs) OnPreviewTouchDown(TouchEventArgs) OnPreviewTouchDown(TouchEventArgs)

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

(Inherited from UIElement)
OnPreviewTouchMove(TouchEventArgs) OnPreviewTouchMove(TouchEventArgs) OnPreviewTouchMove(TouchEventArgs) OnPreviewTouchMove(TouchEventArgs)

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

(Inherited from UIElement)
OnPreviewTouchUp(TouchEventArgs) OnPreviewTouchUp(TouchEventArgs) OnPreviewTouchUp(TouchEventArgs) OnPreviewTouchUp(TouchEventArgs)

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

(Inherited from UIElement)
OnPropertyChanged(DependencyPropertyChangedEventArgs) OnPropertyChanged(DependencyPropertyChangedEventArgs) OnPropertyChanged(DependencyPropertyChangedEventArgs) OnPropertyChanged(DependencyPropertyChangedEventArgs)

當項目有一或多個相依性屬性變更了有效值時呼叫。Called when one or more of the dependency properties that exist on the element have had their effective values changed.

OnQueryContinueDrag(QueryContinueDragEventArgs) OnQueryContinueDrag(QueryContinueDragEventArgs) OnQueryContinueDrag(QueryContinueDragEventArgs) OnQueryContinueDrag(QueryContinueDragEventArgs)

每當未處理的 QueryContinueDrag 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled QueryContinueDrag attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from TextBoxBase)
OnQueryCursor(QueryCursorEventArgs) OnQueryCursor(QueryCursorEventArgs) OnQueryCursor(QueryCursorEventArgs) OnQueryCursor(QueryCursorEventArgs)

每當未處理的 QueryCursor 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled QueryCursor attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from TextBoxBase)
OnRender(DrawingContext) OnRender(DrawingContext) OnRender(DrawingContext) OnRender(DrawingContext)

在衍生類別中覆寫時,參與由配置系統導向的呈現作業。When overridden in a derived class, participates in rendering operations that are directed by the layout system. 這個項目的呈現指令不會在叫用此方法時直接使用,而是會加以保留,以便稍後由配置和繪圖做非同步使用。The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.

(Inherited from UIElement)
OnRenderSizeChanged(SizeChangedInfo) OnRenderSizeChanged(SizeChangedInfo) OnRenderSizeChanged(SizeChangedInfo) OnRenderSizeChanged(SizeChangedInfo)

使用指定的資訊作為最終事件資料的一部分,引發 SizeChanged 事件。Raises the SizeChanged event, using the specified information as part of the eventual event data.

(Inherited from FrameworkElement)
OnSelectionChanged(RoutedEventArgs) OnSelectionChanged(RoutedEventArgs) OnSelectionChanged(RoutedEventArgs) OnSelectionChanged(RoutedEventArgs)

當插入號或目前選項的位置改變時呼叫。Is called when the caret or current selection changes position.

(Inherited from TextBoxBase)
OnStyleChanged(Style, Style) OnStyleChanged(Style, Style) OnStyleChanged(Style, Style) OnStyleChanged(Style, Style)

在這個項目上使用的樣式變更時叫用,如此將使配置失效。Invoked when the style in use on this element changes, which will invalidate the layout.

(Inherited from FrameworkElement)
OnStylusButtonDown(StylusButtonEventArgs) OnStylusButtonDown(StylusButtonEventArgs) OnStylusButtonDown(StylusButtonEventArgs) OnStylusButtonDown(StylusButtonEventArgs)

當未處理的 StylusButtonDown 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled StylusButtonDown attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnStylusButtonUp(StylusButtonEventArgs) OnStylusButtonUp(StylusButtonEventArgs) OnStylusButtonUp(StylusButtonEventArgs) OnStylusButtonUp(StylusButtonEventArgs)

當未處理的 StylusButtonUp 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled StylusButtonUp attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnStylusDown(StylusDownEventArgs) OnStylusDown(StylusDownEventArgs) OnStylusDown(StylusDownEventArgs) OnStylusDown(StylusDownEventArgs)

當未處理的 StylusDown 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled StylusDown attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnStylusEnter(StylusEventArgs) OnStylusEnter(StylusEventArgs) OnStylusEnter(StylusEventArgs) OnStylusEnter(StylusEventArgs)

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

(Inherited from UIElement)
OnStylusInAirMove(StylusEventArgs) OnStylusInAirMove(StylusEventArgs) OnStylusInAirMove(StylusEventArgs) OnStylusInAirMove(StylusEventArgs)

當未處理的 StylusInAirMove 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled StylusInAirMove attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnStylusInRange(StylusEventArgs) OnStylusInRange(StylusEventArgs) OnStylusInRange(StylusEventArgs) OnStylusInRange(StylusEventArgs)

當未處理的 StylusInRange 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled StylusInRange attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnStylusLeave(StylusEventArgs) OnStylusLeave(StylusEventArgs) OnStylusLeave(StylusEventArgs) OnStylusLeave(StylusEventArgs)

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

(Inherited from UIElement)
OnStylusMove(StylusEventArgs) OnStylusMove(StylusEventArgs) OnStylusMove(StylusEventArgs) OnStylusMove(StylusEventArgs)

當未處理的 StylusMove 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled StylusMove attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnStylusOutOfRange(StylusEventArgs) OnStylusOutOfRange(StylusEventArgs) OnStylusOutOfRange(StylusEventArgs) OnStylusOutOfRange(StylusEventArgs)

當未處理的 StylusOutOfRange 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled StylusOutOfRange attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnStylusSystemGesture(StylusSystemGestureEventArgs) OnStylusSystemGesture(StylusSystemGestureEventArgs) OnStylusSystemGesture(StylusSystemGestureEventArgs) OnStylusSystemGesture(StylusSystemGestureEventArgs)

當未處理的 StylusSystemGesture 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled StylusSystemGesture attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnStylusUp(StylusEventArgs) OnStylusUp(StylusEventArgs) OnStylusUp(StylusEventArgs) OnStylusUp(StylusEventArgs)

當未處理的 StylusUp 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled StylusUp attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnTemplateChanged(ControlTemplate, ControlTemplate) OnTemplateChanged(ControlTemplate, ControlTemplate) OnTemplateChanged(ControlTemplate, ControlTemplate) OnTemplateChanged(ControlTemplate, ControlTemplate)

在控制項樣板變更時呼叫。Is called when the control template changes.

(Inherited from TextBoxBase)
OnTextChanged(TextChangedEventArgs) OnTextChanged(TextChangedEventArgs) OnTextChanged(TextChangedEventArgs) OnTextChanged(TextChangedEventArgs)

當這個編輯控制項中的內容變更時呼叫。Is called when content in this editing control changes.

(Inherited from TextBoxBase)
OnTextInput(TextCompositionEventArgs) OnTextInput(TextCompositionEventArgs) OnTextInput(TextCompositionEventArgs) OnTextInput(TextCompositionEventArgs)

每當未處理的 TextInput 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled TextInput attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from TextBoxBase)
OnToolTipClosing(ToolTipEventArgs) OnToolTipClosing(ToolTipEventArgs) OnToolTipClosing(ToolTipEventArgs) OnToolTipClosing(ToolTipEventArgs)

當未處理的 ToolTipClosing 路由事件到達其路由中的這個類別時,便會叫用此方法。Invoked whenever an unhandled ToolTipClosing routed event reaches this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from FrameworkElement)
OnToolTipOpening(ToolTipEventArgs) OnToolTipOpening(ToolTipEventArgs) OnToolTipOpening(ToolTipEventArgs) OnToolTipOpening(ToolTipEventArgs)

ToolTipOpening 路由事件到達其路由中的這個類別時,便會叫用此方法。Invoked whenever the ToolTipOpening routed event reaches this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from FrameworkElement)
OnTouchDown(TouchEventArgs) OnTouchDown(TouchEventArgs) OnTouchDown(TouchEventArgs) OnTouchDown(TouchEventArgs)

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

(Inherited from UIElement)
OnTouchEnter(TouchEventArgs) OnTouchEnter(TouchEventArgs) OnTouchEnter(TouchEventArgs) OnTouchEnter(TouchEventArgs)

提供 TouchEnter 路由事件的類別處理,而這個事件會在觸控從外面移至此項目範圍內時發生。Provides class handling for the TouchEnter routed event that occurs when a touch moves from outside to inside the bounds of this element.

(Inherited from UIElement)
OnTouchLeave(TouchEventArgs) OnTouchLeave(TouchEventArgs) OnTouchLeave(TouchEventArgs) OnTouchLeave(TouchEventArgs)

提供 TouchLeave 路由事件的類別處理,而這個事件會在觸控輸入從此 UIElement 內移至其範圍外時發生。Provides class handling for the TouchLeave routed event that occurs when a touch moves from inside to outside the bounds of this UIElement.

(Inherited from UIElement)
OnTouchMove(TouchEventArgs) OnTouchMove(TouchEventArgs) OnTouchMove(TouchEventArgs) OnTouchMove(TouchEventArgs)

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

(Inherited from UIElement)
OnTouchUp(TouchEventArgs) OnTouchUp(TouchEventArgs) OnTouchUp(TouchEventArgs) OnTouchUp(TouchEventArgs)

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

(Inherited from UIElement)
OnVisualChildrenChanged(DependencyObject, DependencyObject) OnVisualChildrenChanged(DependencyObject, DependencyObject) OnVisualChildrenChanged(DependencyObject, DependencyObject) OnVisualChildrenChanged(DependencyObject, DependencyObject)

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

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

在視覺化樹狀結構中這個項目的父項目變更時叫用。Invoked when the parent of this element in the visual tree is changed. 覆寫 OnVisualParentChanged(DependencyObject)Overrides OnVisualParentChanged(DependencyObject).

(Inherited from FrameworkElement)
PageDown() PageDown() PageDown() PageDown()

以一頁為單位向下捲動控制項的內容。Scrolls the contents of the control down by one page.

(Inherited from TextBoxBase)
PageLeft() PageLeft() PageLeft() PageLeft()

以一頁為單位向左捲動控制項的內容。Scrolls the contents of the control to the left by one page.

(Inherited from TextBoxBase)
PageRight() PageRight() PageRight() PageRight()

以一頁為單位向右捲動控制項的內容。Scrolls the contents of the control to the right by one page.

(Inherited from TextBoxBase)
PageUp() PageUp() PageUp() PageUp()

以一頁為單位向上捲動控制項的內容。Scrolls the contents of the control up by one page.

(Inherited from TextBoxBase)
ParentLayoutInvalidated(UIElement) ParentLayoutInvalidated(UIElement) ParentLayoutInvalidated(UIElement) ParentLayoutInvalidated(UIElement)

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.

(Inherited from FrameworkElement)
Paste() Paste() Paste() Paste()

將剪貼簿內容貼到文字編輯控制項的目前選項上。Pastes the contents of the Clipboard over the current selection in the text editing control.

(Inherited from TextBoxBase)
PointFromScreen(Point) PointFromScreen(Point) PointFromScreen(Point) PointFromScreen(Point)

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

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

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

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

決定下一個項目,該項目會針對所提供的焦點移動方向,接收相對於此項目的焦點,但是不會實際移動焦點。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.

(Inherited from FrameworkElement)
RaiseEvent(RoutedEventArgs) RaiseEvent(RoutedEventArgs) RaiseEvent(RoutedEventArgs) 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).

(Inherited from UIElement)
ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty)

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

(Inherited from DependencyObject)
Redo() Redo() Redo() Redo()

復原最近一次的復原指令。Undoes the most recent undo command. 換句話說,重新執行復原堆疊上的最新復原單位。In other words, redoes the most recent undo unit on the undo stack.

(Inherited from TextBoxBase)
RegisterName(String, Object) RegisterName(String, Object) RegisterName(String, Object) RegisterName(String, Object)

提供可簡化對 NameScope 註冊方法之存取的存取子 (Accessor)。Provides an accessor that simplifies access to the NameScope registration method.

(Inherited from FrameworkElement)
ReleaseAllTouchCaptures() ReleaseAllTouchCaptures() ReleaseAllTouchCaptures() ReleaseAllTouchCaptures()

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

(Inherited from UIElement)
ReleaseMouseCapture() ReleaseMouseCapture() ReleaseMouseCapture() ReleaseMouseCapture()

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

(Inherited from UIElement)
ReleaseStylusCapture() ReleaseStylusCapture() ReleaseStylusCapture() ReleaseStylusCapture()

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

(Inherited from UIElement)
ReleaseTouchCapture(TouchDevice) ReleaseTouchCapture(TouchDevice) ReleaseTouchCapture(TouchDevice) ReleaseTouchCapture(TouchDevice)

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

(Inherited from UIElement)
RemoveHandler(RoutedEvent, Delegate) RemoveHandler(RoutedEvent, Delegate) RemoveHandler(RoutedEvent, Delegate) RemoveHandler(RoutedEvent, Delegate)

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

(Inherited from UIElement)
RemoveLogicalChild(Object) RemoveLogicalChild(Object) RemoveLogicalChild(Object) RemoveLogicalChild(Object)

從這個項目的邏輯樹狀結構中移除提供的物件。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.

(Inherited from FrameworkElement)
RemoveVisualChild(Visual) RemoveVisualChild(Visual) RemoveVisualChild(Visual) RemoveVisualChild(Visual)

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

(Inherited from Visual)
ScrollToEnd() ScrollToEnd() ScrollToEnd() ScrollToEnd()

將編輯控制項檢視畫面捲動至內容的尾端.Scrolls the view of the editing control to the end of the content.

(Inherited from TextBoxBase)
ScrollToHome() ScrollToHome() ScrollToHome() ScrollToHome()

將編輯控制項檢視畫面捲動至檢視區的開頭.Scrolls the view of the editing control to the beginning of the viewport.

(Inherited from TextBoxBase)
ScrollToHorizontalOffset(Double) ScrollToHorizontalOffset(Double) ScrollToHorizontalOffset(Double) ScrollToHorizontalOffset(Double)

將編輯控制項內容捲動至指定水平位移。Scrolls the contents of the editing control to the specified horizontal offset.

(Inherited from TextBoxBase)
ScrollToLine(Int32) ScrollToLine(Int32) ScrollToLine(Int32) ScrollToLine(Int32)

將指定行索引上的行捲動至檢視中。Scrolls the line at the specified line index into view.

ScrollToVerticalOffset(Double) ScrollToVerticalOffset(Double) ScrollToVerticalOffset(Double) ScrollToVerticalOffset(Double)

將編輯控制項內容捲動至指定垂直位移。Scrolls the contents of the editing control to the specified vertical offset.

(Inherited from TextBoxBase)
Select(Int32, Int32) Select(Int32, Int32) Select(Int32, Int32) Select(Int32, Int32)

在文字方塊中選取文字範圍。Selects a range of text in the text box.

SelectAll() SelectAll() SelectAll() SelectAll()

選取文字編輯控制項的所有內容。Selects all the contents of the text editing control.

(Inherited from TextBoxBase)
SetBinding(DependencyProperty, BindingBase) SetBinding(DependencyProperty, BindingBase) SetBinding(DependencyProperty, BindingBase) SetBinding(DependencyProperty, BindingBase)

根據提供的繫結物件,將繫結附加至這個項目。Attaches a binding to this element, based on the provided binding object.

(Inherited from FrameworkElement)
SetBinding(DependencyProperty, String) SetBinding(DependencyProperty, String) SetBinding(DependencyProperty, String) SetBinding(DependencyProperty, String)

根據提供給資料來源做為路徑限定性條件的來源屬性名稱,將繫結附加至這個項目。Attaches a binding to this element, based on the provided source property name as a path qualification to the data source.

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

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

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

搜尋具有指定名稱的資源,並針對指定的屬性建立該資源的資源參考。Searches for a resource with the specified name and sets up a resource reference to it for the specified property.

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

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

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

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

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

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

(Inherited from UIElement)
ShouldSerializeInputBindings() ShouldSerializeInputBindings() ShouldSerializeInputBindings() ShouldSerializeInputBindings()

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

(Inherited from UIElement)
ShouldSerializeProperty(DependencyProperty) ShouldSerializeProperty(DependencyProperty) ShouldSerializeProperty(DependencyProperty) ShouldSerializeProperty(DependencyProperty)

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

(Inherited from DependencyObject)
ShouldSerializeResources() ShouldSerializeResources() ShouldSerializeResources() ShouldSerializeResources()

傳回序列化 (Serialization) 處理序是否應該將 Resources 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the Resources property.

(Inherited from FrameworkElement)
ShouldSerializeStyle() ShouldSerializeStyle() ShouldSerializeStyle() ShouldSerializeStyle()

傳回序列化 (Serialization) 處理序是否應該將 Style 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the Style property.

(Inherited from FrameworkElement)
ShouldSerializeText(XamlDesignerSerializationManager) ShouldSerializeText(XamlDesignerSerializationManager) ShouldSerializeText(XamlDesignerSerializationManager) ShouldSerializeText(XamlDesignerSerializationManager)

傳回值,這個值表示 Text 屬性的有效值是否應該在 TextBox 物件的序列化期間予以序列化。Returns a value that indicates whether the effective value of the Text property should be serialized during serialization of the TextBox object.

ShouldSerializeTriggers() ShouldSerializeTriggers() ShouldSerializeTriggers() ShouldSerializeTriggers()

傳回序列化 (Serialization) 處理序是否應該將 Triggers 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the Triggers property.

(Inherited from FrameworkElement)
ToString() ToString() ToString() ToString()

傳回 Control 物件的字串表示。Returns the string representation of a Control object.

(Inherited from Control)
TransformToAncestor(Visual) TransformToAncestor(Visual) TransformToAncestor(Visual) TransformToAncestor(Visual)

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

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

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

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

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

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

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

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

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

(Inherited from UIElement)
TryFindResource(Object) TryFindResource(Object) TryFindResource(Object) TryFindResource(Object)

以指定的索引鍵搜尋資源;如果找到,則傳回該資源。Searches for a resource with the specified key, and returns that resource if found.

(Inherited from FrameworkElement)
Undo() Undo() Undo() Undo()

復原最近一次的復原指令。Undoes the most recent undo command. 換句話說,將復原堆疊上的最新復原單位復原。In other words, undoes the most recent undo unit on the undo stack.

(Inherited from TextBoxBase)
UnregisterName(String) UnregisterName(String) UnregisterName(String) UnregisterName(String)

簡化對 NameScope 取消註冊方法的存取。Simplifies access to the NameScope de-registration method.

(Inherited from FrameworkElement)
UpdateDefaultStyle() UpdateDefaultStyle() UpdateDefaultStyle() UpdateDefaultStyle()

重新將預設樣式套用至目前 FrameworkElementReapplies the default style to the current FrameworkElement.

(Inherited from FrameworkElement)
UpdateLayout() UpdateLayout() UpdateLayout() UpdateLayout()

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

(Inherited from UIElement)
VerifyAccess() VerifyAccess() VerifyAccess() VerifyAccess()

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

(Inherited from DispatcherObject)

明確介面實作

IAddChild.AddChild(Object) IAddChild.AddChild(Object) IAddChild.AddChild(Object) IAddChild.AddChild(Object)

在所有情況下都擲回例外狀況 (Exception)。Throws an exception in all cases.

IAddChild.AddText(String) IAddChild.AddText(String) IAddChild.AddText(String) IAddChild.AddText(String)

將節點的文字內容加入物件中。Adds the text content of a node to the object.

IQueryAmbient.IsAmbientPropertyAvailable(String) IQueryAmbient.IsAmbientPropertyAvailable(String) IQueryAmbient.IsAmbientPropertyAvailable(String) IQueryAmbient.IsAmbientPropertyAvailable(String)

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

(Inherited from FrameworkElement)

事件

ContextMenuClosing ContextMenuClosing ContextMenuClosing ContextMenuClosing

在項目上的任何內容功能表正要關閉之前發生。Occurs just before any context menu on the element is closed.

(Inherited from FrameworkElement)
ContextMenuOpening ContextMenuOpening ContextMenuOpening ContextMenuOpening

當項目上的任何內容功能表開啟時發生。Occurs when any context menu on the element is opened.

(Inherited from FrameworkElement)
DataContextChanged DataContextChanged DataContextChanged DataContextChanged

這個項目的資料內容變更時發生。Occurs when the data context for this element changes.

(Inherited from FrameworkElement)
DragEnter DragEnter DragEnter DragEnter

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

(Inherited from UIElement)
DragLeave DragLeave DragLeave DragLeave

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

(Inherited from UIElement)
DragOver DragOver DragOver DragOver

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

(Inherited from UIElement)
Drop Drop Drop Drop

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

(Inherited from UIElement)
FocusableChanged FocusableChanged FocusableChanged FocusableChanged

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

(Inherited from UIElement)
GiveFeedback GiveFeedback GiveFeedback GiveFeedback

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

(Inherited from UIElement)
GotFocus GotFocus GotFocus GotFocus

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

(Inherited from UIElement)
GotKeyboardFocus GotKeyboardFocus GotKeyboardFocus GotKeyboardFocus

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

(Inherited from UIElement)
GotMouseCapture GotMouseCapture GotMouseCapture GotMouseCapture

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

(Inherited from UIElement)
GotStylusCapture GotStylusCapture GotStylusCapture GotStylusCapture

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

(Inherited from UIElement)
GotTouchCapture GotTouchCapture GotTouchCapture GotTouchCapture

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

(Inherited from UIElement)
Initialized Initialized Initialized Initialized

當這個 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.

(Inherited from FrameworkElement)
IsEnabledChanged IsEnabledChanged IsEnabledChanged IsEnabledChanged

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

(Inherited from UIElement)
IsHitTestVisibleChanged IsHitTestVisibleChanged IsHitTestVisibleChanged IsHitTestVisibleChanged

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

(Inherited from UIElement)
IsKeyboardFocusedChanged IsKeyboardFocusedChanged IsKeyboardFocusedChanged IsKeyboardFocusedChanged

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

(Inherited from UIElement)
IsKeyboardFocusWithinChanged IsKeyboardFocusWithinChanged IsKeyboardFocusWithinChanged IsKeyboardFocusWithinChanged

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

(Inherited from UIElement)
IsMouseCapturedChanged IsMouseCapturedChanged IsMouseCapturedChanged IsMouseCapturedChanged

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

(Inherited from UIElement)
IsMouseCaptureWithinChanged IsMouseCaptureWithinChanged IsMouseCaptureWithinChanged IsMouseCaptureWithinChanged

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

(Inherited from UIElement)
IsMouseDirectlyOverChanged IsMouseDirectlyOverChanged IsMouseDirectlyOverChanged IsMouseDirectlyOverChanged

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

(Inherited from UIElement)
IsStylusCapturedChanged IsStylusCapturedChanged IsStylusCapturedChanged IsStylusCapturedChanged

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

(Inherited from UIElement)
IsStylusCaptureWithinChanged IsStylusCaptureWithinChanged IsStylusCaptureWithinChanged IsStylusCaptureWithinChanged

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

(Inherited from UIElement)
IsStylusDirectlyOverChanged IsStylusDirectlyOverChanged IsStylusDirectlyOverChanged IsStylusDirectlyOverChanged

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

(Inherited from UIElement)
IsVisibleChanged IsVisibleChanged IsVisibleChanged IsVisibleChanged

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

(Inherited from UIElement)
KeyDown KeyDown KeyDown KeyDown

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

(Inherited from UIElement)
KeyUp KeyUp KeyUp KeyUp

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

(Inherited from UIElement)
LayoutUpdated LayoutUpdated LayoutUpdated LayoutUpdated

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

(Inherited from UIElement)
Loaded Loaded Loaded Loaded

當項目已配置版面、呈現以及可以互動時發生。Occurs when the element is laid out, rendered, and ready for interaction.

(Inherited from FrameworkElement)
LostFocus LostFocus LostFocus LostFocus

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

(Inherited from UIElement)
LostKeyboardFocus LostKeyboardFocus LostKeyboardFocus LostKeyboardFocus

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

(Inherited from UIElement)
LostMouseCapture LostMouseCapture LostMouseCapture LostMouseCapture

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

(Inherited from UIElement)
LostStylusCapture LostStylusCapture LostStylusCapture LostStylusCapture

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

(Inherited from UIElement)
LostTouchCapture LostTouchCapture LostTouchCapture LostTouchCapture

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

(Inherited from UIElement)
ManipulationBoundaryFeedback ManipulationBoundaryFeedback ManipulationBoundaryFeedback ManipulationBoundaryFeedback

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

(Inherited from UIElement)
ManipulationCompleted ManipulationCompleted ManipulationCompleted ManipulationCompleted

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

(Inherited from UIElement)
ManipulationDelta ManipulationDelta ManipulationDelta ManipulationDelta

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

(Inherited from UIElement)
ManipulationInertiaStarting ManipulationInertiaStarting ManipulationInertiaStarting ManipulationInertiaStarting

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

(Inherited from UIElement)
ManipulationStarted ManipulationStarted ManipulationStarted ManipulationStarted

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

(Inherited from UIElement)
ManipulationStarting ManipulationStarting ManipulationStarting ManipulationStarting

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

(Inherited from UIElement)
MouseDoubleClick MouseDoubleClick MouseDoubleClick MouseDoubleClick

發生於按兩下或更多下滑鼠按鈕時。Occurs when a mouse button is clicked two or more times.

(Inherited from Control)
MouseDown MouseDown MouseDown MouseDown

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

(Inherited from UIElement)
MouseEnter MouseEnter MouseEnter MouseEnter

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

(Inherited from UIElement)
MouseLeave MouseLeave MouseLeave MouseLeave

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

(Inherited from UIElement)
MouseLeftButtonDown MouseLeftButtonDown MouseLeftButtonDown MouseLeftButtonDown

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

(Inherited from UIElement)
MouseLeftButtonUp MouseLeftButtonUp MouseLeftButtonUp MouseLeftButtonUp

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

(Inherited from UIElement)
MouseMove MouseMove MouseMove MouseMove

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

(Inherited from UIElement)
MouseRightButtonDown MouseRightButtonDown MouseRightButtonDown MouseRightButtonDown

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

(Inherited from UIElement)
MouseRightButtonUp MouseRightButtonUp MouseRightButtonUp MouseRightButtonUp

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

(Inherited from UIElement)
MouseUp MouseUp MouseUp MouseUp

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

(Inherited from UIElement)
MouseWheel MouseWheel MouseWheel MouseWheel

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

(Inherited from UIElement)
PreviewDragEnter PreviewDragEnter PreviewDragEnter PreviewDragEnter

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

(Inherited from UIElement)
PreviewDragLeave PreviewDragLeave PreviewDragLeave PreviewDragLeave

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

(Inherited from UIElement)
PreviewDragOver PreviewDragOver PreviewDragOver PreviewDragOver

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

(Inherited from UIElement)
PreviewDrop PreviewDrop PreviewDrop PreviewDrop

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

(Inherited from UIElement)
PreviewGiveFeedback PreviewGiveFeedback PreviewGiveFeedback PreviewGiveFeedback

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

(Inherited from UIElement)
PreviewGotKeyboardFocus PreviewGotKeyboardFocus PreviewGotKeyboardFocus PreviewGotKeyboardFocus

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

(Inherited from UIElement)
PreviewKeyDown PreviewKeyDown PreviewKeyDown PreviewKeyDown

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

(Inherited from UIElement)
PreviewKeyUp PreviewKeyUp PreviewKeyUp PreviewKeyUp

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

(Inherited from UIElement)
PreviewLostKeyboardFocus PreviewLostKeyboardFocus PreviewLostKeyboardFocus PreviewLostKeyboardFocus

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

(Inherited from UIElement)
PreviewMouseDoubleClick PreviewMouseDoubleClick PreviewMouseDoubleClick PreviewMouseDoubleClick

使用者按滑鼠按鈕超過兩下時發生。Occurs when a user clicks the mouse button two or more times.

(Inherited from Control)
PreviewMouseDown PreviewMouseDown PreviewMouseDown PreviewMouseDown

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

(Inherited from UIElement)
PreviewMouseLeftButtonDown PreviewMouseLeftButtonDown PreviewMouseLeftButtonDown PreviewMouseLeftButtonDown

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

(Inherited from UIElement)
PreviewMouseLeftButtonUp PreviewMouseLeftButtonUp PreviewMouseLeftButtonUp PreviewMouseLeftButtonUp

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

(Inherited from UIElement)
PreviewMouseMove PreviewMouseMove PreviewMouseMove PreviewMouseMove

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

(Inherited from UIElement)
PreviewMouseRightButtonDown PreviewMouseRightButtonDown PreviewMouseRightButtonDown PreviewMouseRightButtonDown

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

(Inherited from UIElement)
PreviewMouseRightButtonUp PreviewMouseRightButtonUp PreviewMouseRightButtonUp PreviewMouseRightButtonUp

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

(Inherited from UIElement)
PreviewMouseUp PreviewMouseUp PreviewMouseUp PreviewMouseUp

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

(Inherited from UIElement)
PreviewMouseWheel PreviewMouseWheel PreviewMouseWheel PreviewMouseWheel

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

(Inherited from UIElement)
PreviewQueryContinueDrag PreviewQueryContinueDrag PreviewQueryContinueDrag PreviewQueryContinueDrag

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

(Inherited from UIElement)
PreviewStylusButtonDown PreviewStylusButtonDown PreviewStylusButtonDown PreviewStylusButtonDown

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

(Inherited from UIElement)
PreviewStylusButtonUp PreviewStylusButtonUp PreviewStylusButtonUp PreviewStylusButtonUp

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

(Inherited from UIElement)
PreviewStylusDown PreviewStylusDown PreviewStylusDown PreviewStylusDown

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

(Inherited from UIElement)
PreviewStylusInAirMove PreviewStylusInAirMove PreviewStylusInAirMove PreviewStylusInAirMove

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

(Inherited from UIElement)
PreviewStylusInRange PreviewStylusInRange PreviewStylusInRange PreviewStylusInRange

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

(Inherited from UIElement)
PreviewStylusMove PreviewStylusMove PreviewStylusMove PreviewStylusMove

手寫筆在項目上方移動時發生。Occurs when the stylus moves while over the element. 手寫筆必須在受到數位板偵測時移動才能引發此事件,否則會改為引發 PreviewStylusInAirMoveThe stylus must move while being detected by the digitizer to raise this event, otherwise, PreviewStylusInAirMove is raised instead.

(Inherited from UIElement)
PreviewStylusOutOfRange PreviewStylusOutOfRange PreviewStylusOutOfRange PreviewStylusOutOfRange

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

(Inherited from UIElement)
PreviewStylusSystemGesture PreviewStylusSystemGesture PreviewStylusSystemGesture PreviewStylusSystemGesture

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

(Inherited from UIElement)
PreviewStylusUp PreviewStylusUp PreviewStylusUp PreviewStylusUp

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

(Inherited from UIElement)
PreviewTextInput PreviewTextInput PreviewTextInput PreviewTextInput

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

(Inherited from UIElement)
PreviewTouchDown PreviewTouchDown PreviewTouchDown PreviewTouchDown

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

(Inherited from UIElement)
PreviewTouchMove PreviewTouchMove PreviewTouchMove PreviewTouchMove

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

(Inherited from UIElement)
PreviewTouchUp PreviewTouchUp PreviewTouchUp PreviewTouchUp

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

(Inherited from UIElement)
QueryContinueDrag QueryContinueDrag QueryContinueDrag QueryContinueDrag

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

(Inherited from UIElement)
QueryCursor QueryCursor QueryCursor QueryCursor

要求顯示游標時發生。Occurs when the cursor is requested to display. 每當滑鼠指標移動至新位置時,都會引發此事件,這意謂游標物件可能會根據其新位置而變更。This event is raised on an element each time that the mouse pointer moves to a new location, which means the cursor object might need to be changed based on its new position.

(Inherited from UIElement)
RequestBringIntoView RequestBringIntoView RequestBringIntoView RequestBringIntoView

在這個項目上呼叫 BringIntoView(Rect) 時發生。Occurs when BringIntoView(Rect) is called on this element.

(Inherited from FrameworkElement)
SelectionChanged SelectionChanged SelectionChanged SelectionChanged

文字選取變更時發生。Occurs when the text selection has changed.

(Inherited from TextBoxBase)
SizeChanged SizeChanged SizeChanged SizeChanged

當這個項目的 ActualHeightActualWidth 屬性變更值時發生。Occurs when either the ActualHeight or the ActualWidth properties change value on this element.

(Inherited from FrameworkElement)
SourceUpdated SourceUpdated SourceUpdated SourceUpdated

來源值因與此項目繫結的任何現有屬性變更時發生。Occurs when the source value changes for any existing property binding on this element.

(Inherited from FrameworkElement)
StylusButtonDown StylusButtonDown StylusButtonDown StylusButtonDown

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

(Inherited from UIElement)
StylusButtonUp StylusButtonUp StylusButtonUp StylusButtonUp

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

(Inherited from UIElement)
StylusDown StylusDown StylusDown StylusDown

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

(Inherited from UIElement)
StylusEnter StylusEnter StylusEnter StylusEnter

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

(Inherited from UIElement)
StylusInAirMove StylusInAirMove StylusInAirMove StylusInAirMove

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

(Inherited from UIElement)
StylusInRange StylusInRange StylusInRange StylusInRange

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

(Inherited from UIElement)
StylusLeave StylusLeave StylusLeave StylusLeave

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

(Inherited from UIElement)
StylusMove StylusMove StylusMove StylusMove

當手寫筆移至此項目上方時發生。Occurs when the stylus moves over this element. 手寫筆在數位板上必須移動才會引發這個事件。The stylus must move while on the digitizer to raise this event. 否則,會改為引發 StylusInAirMoveOtherwise, StylusInAirMove is raised instead.

(Inherited from UIElement)
StylusOutOfRange StylusOutOfRange StylusOutOfRange StylusOutOfRange

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

(Inherited from UIElement)
StylusSystemGesture StylusSystemGesture StylusSystemGesture StylusSystemGesture

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

(Inherited from UIElement)
StylusUp StylusUp StylusUp StylusUp

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

(Inherited from UIElement)
TargetUpdated TargetUpdated TargetUpdated TargetUpdated

這個項目上的任何屬性繫結的目標值變更時發生。Occurs when the target value changes for any property binding on this element.

(Inherited from FrameworkElement)
TextChanged TextChanged TextChanged TextChanged

文字元素的內容變更時發生。Occurs when content changes in the text element.

(Inherited from TextBoxBase)
TextInput TextInput TextInput TextInput

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

(Inherited from UIElement)
ToolTipClosing ToolTipClosing ToolTipClosing ToolTipClosing

在項目上的任何工具提示正要關閉之前發生。Occurs just before any tooltip on the element is closed.

(Inherited from FrameworkElement)
ToolTipOpening ToolTipOpening ToolTipOpening ToolTipOpening

任何元素的工具提示開啟時發生。Occurs when any tooltip on the element is opened.

(Inherited from FrameworkElement)
TouchDown TouchDown TouchDown TouchDown

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

(Inherited from UIElement)
TouchEnter TouchEnter TouchEnter TouchEnter

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

(Inherited from UIElement)
TouchLeave TouchLeave TouchLeave TouchLeave

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

(Inherited from UIElement)
TouchMove TouchMove TouchMove TouchMove

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

(Inherited from UIElement)
TouchUp TouchUp TouchUp TouchUp

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

(Inherited from UIElement)
Unloaded Unloaded Unloaded Unloaded

當項目從已載入項目的項目樹狀結構中移除時發生。Occurs when the element is removed from within an element tree of loaded elements.

(Inherited from FrameworkElement)

適用於

另請參閱