RichTextBox RichTextBox RichTextBox RichTextBox Class

定义

表示对 FlowDocument 对象执行操作的丰富编辑控件。Represents a rich editing control which operates on FlowDocument objects.

public ref class RichTextBox : System::Windows::Controls::Primitives::TextBoxBase, System::Windows::Markup::IAddChild
[System.Windows.Localizability(System.Windows.LocalizationCategory.Inherit)]
[System.Windows.Markup.ContentProperty("Document")]
public class RichTextBox : System.Windows.Controls.Primitives.TextBoxBase, System.Windows.Markup.IAddChild
type RichTextBox = class
    inherit TextBoxBase
    interface IAddChild
Public Class RichTextBox
Inherits TextBoxBase
Implements IAddChild
继承
属性
实现

示例

下面的示例声明一个RichTextBox包含简单FlowDocument的。The following example declares a RichTextBox that contains a simple FlowDocument.

<RichTextBox Name="richTB">
  <FlowDocument>
    <Paragraph>
      <Run>Paragraph 1</Run>
    </Paragraph>
    <Paragraph>
      <Run>Paragraph 2</Run>
    </Paragraph>
    <Paragraph>
      <Run>Paragraph 3</Run>
    </Paragraph>
  </FlowDocument>
</RichTextBox>
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Documents;
namespace SDKSample
{
    public partial class RichTextBoxExample : Page
    {
        public RichTextBoxExample()
        {

            StackPanel myStackPanel = new StackPanel();

            // Create a FlowDocument to contain content for the RichTextBox.
            FlowDocument myFlowDoc = new FlowDocument();

            // Add paragraphs to the FlowDocument.
            myFlowDoc.Blocks.Add(new Paragraph(new Run("Paragraph 1")));
            myFlowDoc.Blocks.Add(new Paragraph(new Run("Paragraph 2")));
            myFlowDoc.Blocks.Add(new Paragraph(new Run("Paragraph 3")));
            RichTextBox myRichTextBox = new RichTextBox();

            // Add initial content to the RichTextBox.
            myRichTextBox.Document = myFlowDoc;
            
            myStackPanel.Children.Add(myRichTextBox);
            this.Content = myStackPanel;
            
        }
    }
}

Imports System.Windows
Imports System.Windows.Controls
Imports System.Windows.Media
Imports System.Windows.Documents
Namespace SDKSample
	Partial Public Class RichTextBoxExample
		Inherits Page
		Public Sub New()

			Dim myStackPanel As New StackPanel()

			' Create a FlowDocument to contain content for the RichTextBox.
			Dim myFlowDoc As New FlowDocument()

			' Add paragraphs to the FlowDocument.
			myFlowDoc.Blocks.Add(New Paragraph(New Run("Paragraph 1")))
			myFlowDoc.Blocks.Add(New Paragraph(New Run("Paragraph 2")))
			myFlowDoc.Blocks.Add(New Paragraph(New Run("Paragraph 3")))
			Dim myRichTextBox As New RichTextBox()

			' Add initial content to the RichTextBox.
			myRichTextBox.Document = myFlowDoc

			myStackPanel.Children.Add(myRichTextBox)
			Me.Content = myStackPanel

		End Sub
	End Class
End Namespace

注解

FlowDocument是唯一支持的子元素RichTextBoxFlowDocument is the only supported child element for a RichTextBox.

重要

RichTextBox为冒泡MouseUpMouseDown事件提供内置处理。RichTextBox has built-in handling for the bubbling MouseUp and MouseDown events. 因此, 永远不会调用在MouseUp RichTextBox中侦听MouseDown或事件的自定义事件处理程序。Consequently, custom event handlers that listen for MouseUp or MouseDown events from a RichTextBox will never 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). 不要将事件标记为 "已处理", 除非你RichTextBox有意要禁用这些事件的本机处理, 并注意这会对控件的UIUI产生显著影响。Do not mark the event handled unless you deliberately want to disable RichTextBox native handling of these events, and be aware that this has notable effects on the control's UIUI.

支持RichTextBox复制和粘贴图像时, 当前不支持某些方案, 可能无法正常工作。While RichTextBox supports copying and pasting of images, certain scenarios are currently unsupported and may not work properly. 下表总结了这些方案和预期结果。The following table summarizes these scenarios and expected results.

图像复制源Image Copy Source 图像粘贴结果Image Paste Result
图像源是图形图元文件Image source is a graphic metafile 未粘贴任何图像No image is pasted
图像源使用相对路径或链接Image source uses relative path or link 粘贴了乱帖或空白图像Garbled or blank image is pasted
图像源链接不是以预期的图像格式 (。PNG、。JPG、。GIFImage source link does not end with an expected image format (.PNG, .JPG, .GIF) 粘贴了乱帖或空白图像Garbled or blank image is pasted
从格式错误的格式文本复制的图像源 (RTF)Image source copied from malformed RichText (RTF) 粘贴链接到图像源 (而不是图像)Link to image source is pasted (rather than image)

RichTextBox HTML 内容粘贴到可能会导致意外行为, RichTextBox因为使用 RTF 格式, 而不是直接使用 HTML 格式。Pasting HTML content into a RichTextBox might result in unexpected behavior because RichTextBox uses RTF format rather than directly using HTML format.

文本总是包装在中RichTextBoxText always wraps in a RichTextBox. 如果你不希望文本换行, 请将PageWidth FlowDocument上的设置为大于的宽度RichTextBoxIf you do not want text to wrap then set the PageWidth on the FlowDocument to be larger than the width of the RichTextBox. 但是, 一旦达到页面宽度, 文本仍会换行。However, once the page width is reached the text still wraps.

RichTextBox使用和属性VerticalContentAlignment在中水平和垂直对齐内容。 HorizontalContentAlignmentHorizontally and vertically aligning content within a RichTextBox is done with the HorizontalContentAlignment and VerticalContentAlignment properties. 通过和属性VerticalAlignment在页面布局中对齐。 RichTextBox HorizontalAlignmentAligning the RichTextBox within the layout of the page is done with the HorizontalAlignment and VerticalAlignment properties.

默认RichTextBox情况下, 滚动条在上不可见。Scrollbars are not visible on a RichTextBox by default. 若要使滚动条可见, 请VerticalScrollBarVisibility将属性Visible设置Auto为或。To make a scrollbar visible, set the VerticalScrollBarVisibility property to Visible or Auto.

通常情况下TextChanged , 应该使用事件来检测TextBox KeyDownRichTextBox更改中的文本, 而不是在预期时进行检测。Usually, the TextChanged event should be used to detect when the text in a TextBox or RichTextBox changes, rather then KeyDown as you might expect. 有关示例,请参见 如何:在文本框中的文本发生更改时进行检测。For an example, see How to: Detect When Text in a TextBox Has Changed.

RichTextBox支持多种键盘命令。RichTextBox supports a variety of keyboard commands. 有关键盘命令的列表, 请参阅EditingCommandsFor a list of keyboard commands, see EditingCommands.

此控件的依赖属性可能由控件的默认样式设置。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.

构造函数

RichTextBox() RichTextBox() RichTextBox() RichTextBox()

初始化 RichTextBox 类的一个新默认实例。Initializes a new, default instance of the RichTextBox class.

RichTextBox(FlowDocument) RichTextBox(FlowDocument) RichTextBox(FlowDocument) RichTextBox(FlowDocument)

初始化 RichTextBox 类的一个新实例,以将指定的 FlowDocument 作为初始内容添加。Initializes a new instance of the RichTextBox class, adding a specified FlowDocument as the initial content.

字段

IsDocumentEnabledProperty IsDocumentEnabledProperty IsDocumentEnabledProperty IsDocumentEnabledProperty

标识 IsDocumentEnabled 依赖项属性。Identifies the IsDocumentEnabled 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)
CaretPosition CaretPosition CaretPosition CaretPosition

获取或设置输入插入符号的位置。Gets or sets the position of the input caret.

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

获取或设置表示 FlowDocument 的内容的 RichTextBoxGets or sets the FlowDocument that represents the contents of the RichTextBox.

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

获取或设置在父元素(如 Panel 或项控件)中组合此元素时所应用的水平对齐特征。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)
IsDocumentEnabled IsDocumentEnabled IsDocumentEnabled IsDocumentEnabled

获取或设置一个值,该值指示用户是否可以与 UIElement 内的 ContentElementRichTextBox 对象进行交互。Gets or sets a value that indicates whether the user can interact with UIElement and ContentElement objects within the RichTextBox.

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

获取或设置一个值,该值指示是否将某个控件包含在 Tab 导航中。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)
LogicalChildren LogicalChildren LogicalChildren LogicalChildren

获取一个可循环访问 RichTextBox 的逻辑子级的枚举器。Gets an enumerator that can iterate the logical children of the RichTextBox.

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

获取或设置一个作为 Brush 实现的不透明蒙板,该蒙板可应用到此元素所呈现内容的任何 Alpha 通道蒙板。Gets or sets an opacity mask, as a Brush implementation that is applied to any alpha-channel masking for the rendered content of this element. 这是依赖项属性。This is a dependency property.

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

获取一个包含 TextSelection 中当前选定内容的 RichTextBox 对象。Gets a TextSelection object containing the current selection in the RichTextBox.

SelectionBrush SelectionBrush SelectionBrush SelectionBrush

获取或设置会突出显示选定文本的画笔。Gets or sets the brush that highlights selected text.

(Inherited from TextBoxBase)
SelectionOpacity SelectionOpacity SelectionOpacity SelectionOpacity

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

(Inherited from TextBoxBase)
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)
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)
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 事件处理程序集合的指定 UIElement 中。Adds 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 中定义为虚拟对象)并密封实现。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()

启动此元素的初始化过程。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)
ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty)

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

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

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

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

对指定依赖属性的值进行强制。Coerces the value of the specified dependency property. 通过对调用方 DependencyObject 上存在的依赖属性的属性元数据中所指定的任何 CoerceValueCallback 函数进行调用来完成此操作。This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject.

(Inherited from DependencyObject)
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 是否等效于当前 DependencyObjectDetermines whether a provided DependencyObject is equivalent to the current DependencyObject.

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

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

(Inherited from Visual)
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)

返回表示指定属性的绑定的 BindingExpressionReturns the BindingExpression that represents the binding on the specified property.

(Inherited from FrameworkElement)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from DependencyObject)
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)
GetLocalValueEnumerator() GetLocalValueEnumerator() GetLocalValueEnumerator() GetLocalValueEnumerator()

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

(Inherited from DependencyObject)
GetNextSpellingErrorPosition(TextPointer, LogicalDirection) GetNextSpellingErrorPosition(TextPointer, LogicalDirection) GetNextSpellingErrorPosition(TextPointer, LogicalDirection) GetNextSpellingErrorPosition(TextPointer, LogicalDirection)

返回指向 TextPointer 的内容中下一个拼写错误的 RichTextBoxReturns a TextPointer that points to the next spelling error in the contents of the RichTextBox.

GetPositionFromPoint(Point, Boolean) GetPositionFromPoint(Point, Boolean) GetPositionFromPoint(Point, Boolean) GetPositionFromPoint(Point, Boolean)

返回 TextPointer,它指向与指定职位最近的插入点。Returns a TextPointer that points to the insertion point closest to the specified position.

GetSpellingError(TextPointer) GetSpellingError(TextPointer) GetSpellingError(TextPointer) GetSpellingError(TextPointer)

返回一个 SpellingError 对象,该对象与 RichTextBox 的内容中指定位置的任何拼写错误相关联。Returns a SpellingError object associated with any spelling error at a specified position in the contents of the RichTextBox.

GetSpellingErrorRange(TextPointer) GetSpellingErrorRange(TextPointer) GetSpellingErrorRange(TextPointer) GetSpellingErrorRange(TextPointer)

返回一个 TextRange 对象,其中包括 RichTextBox 的内容中指定位置处的任何拼错的单词。Returns a TextRange object covering any misspelled word at a specified position in the contents of the RichTextBox.

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)

调用以重新测量 RichTextBoxCalled to re-measure the RichTextBox.

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

创建当前 Object 的浅表副本。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)

在调用对于此元素有意义的访问键时提供类处理。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()

创建并返回此 AutomationPeerRichTextBox 对象。Creates and returns an AutomationPeer object for this RichTextBox.

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

呈现此多信息文本框时所使用的 DPI 发生变化时进行调用。Called when the DPI at which this Rich Text Box is rendered changes.

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)

每当更新此 FrameworkElement 上任何依赖项属性的有效值时调用。Invoked whenever the effective value of any dependency property on this FrameworkElement has been updated. 将在实参形参中报告已更改的特定依赖属性。The specific dependency property that changed is reported in the arguments parameter. 重写 OnPropertyChanged(DependencyPropertyChangedEventArgs)Overrides OnPropertyChanged(DependencyPropertyChangedEventArgs).

(Inherited from FrameworkElement)
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 的当前坐标系的 VisualConverts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual.

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

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

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

根据提供的焦点移动方向,确定在此元素之后接收焦点的下一个元素,但不实际移动焦点。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. 在提供的 RoutedEventArgs 实例内标识将引发的 RoutedEvent(作为该事件数据的 RoutedEvent 属性)。The RoutedEvent to be raised is identified within the RoutedEventArgs instance that is provided (as the RoutedEvent property of that event data).

(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 注册方法访问的访问器。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)
ScrollToVerticalOffset(Double) ScrollToVerticalOffset(Double) ScrollToVerticalOffset(Double) ScrollToVerticalOffset(Double)

将编辑控件的内容滚动到指定的垂直偏移。Scrolls the contents of the editing control to the specified vertical offset.

(Inherited from TextBoxBase)
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()

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

(Inherited from UIElement)
ShouldSerializeDocument() ShouldSerializeDocument() ShouldSerializeDocument() ShouldSerializeDocument()

返回一个值,该值指示在序列化 Document 对象期间,是否应对 RichTextBox 属性的有效值进行序列化。Returns a value that indicates whether or not the effective value of the Document property should be serialized during serialization of a RichTextBox object.

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

返回序列化进程是否应在此类的实例上序列化 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()

返回一个值,该值指示序列化过程是否应该序列化 Resources 属性的内容。Returns whether serialization processes should serialize the contents of the Resources property.

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

返回一个值,该值指示序列化过程是否应该序列化 Style 属性的内容。Returns whether serialization processes should serialize the contents of the Style property.

(Inherited from FrameworkElement)
ShouldSerializeTriggers() ShouldSerializeTriggers() ShouldSerializeTriggers() ShouldSerializeTriggers()

返回一个值,该值指示序列化过程是否应该序列化 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)

此类型或成员支持 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基础结构,但不可直接在代码中使用。This type or member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

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

此类型或成员支持 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基础结构,但不可直接在代码中使用。This type or member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

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)

适用于