Hyperlink Class

Definition

提供用于在流内容中承载超链接的功能的内联级别的流内容元素。An inline-level flow content element that provides facilities for hosting hyperlinks within flow content.

public ref class Hyperlink : System::Windows::Documents::Span, System::Windows::Input::ICommandSource, System::Windows::Markup::IUriContext
[System.Windows.Documents.TextElementEditingBehavior(IsMergeable=false, IsTypographicOnly=false)]
public class Hyperlink : System.Windows.Documents.Span, System.Windows.Input.ICommandSource, System.Windows.Markup.IUriContext
type Hyperlink = class
    inherit Span
    interface ICommandSource
    interface IUriContext
Public Class Hyperlink
Inherits Span
Implements ICommandSource, IUriContext
Inheritance
Attributes
Implements

Examples

下面的示例演示了 Hyperlink 元素的简单用法。The following example shows simple use of a Hyperlink element.

<Paragraph>
  <Run>Text preceding the hyperlink.</Run>
  <Hyperlink
    NavigateUri="http://search.msn.com"
  >
    Link text.
  </Hyperlink>
  <Run Name="test">Text following the hyperlink.</Run>
</Paragraph>

下面的示例演示如何以编程方式创建 HyperlinkThe following example shows how to create a Hyperlink programmatically.

Paragraph parx = new Paragraph();
Run run1 = new Run("Text preceeding the hyperlink.");
Run run2 = new Run("Text following the hyperlink.");
Run run3 = new Run("Link Text.");

Hyperlink hyperl = new Hyperlink(run3);
hyperl.NavigateUri = new Uri("http://search.msn.com");

parx.Inlines.Add(run1);
parx.Inlines.Add(hyperl);
parx.Inlines.Add(run2);
Dim parx As New Paragraph()
Dim run1 As New Run("Text preceeding the hyperlink.")
Dim run2 As New Run("Text following the hyperlink.")
Dim run3 As New Run("Link Text.")

Dim hyperl As New Hyperlink(run3)
hyperl.NavigateUri = New Uri("http://search.msn.com")

parx.Inlines.Add(run1)
parx.Inlines.Add(hyperl)
parx.Inlines.Add(run2)

Remarks

Hyperlink 实现 NavigateUri 属性,该属性是在单击超链接时应导航到的内容的 Uri 设置的。Hyperlink implements the NavigateUri property that you set with the Uri of the content that should be navigated to when the Hyperlink is clicked. Hyperlink 导航仅在以下情况下才会发生: Hyperlink 的直接或间接父级是导航宿主,其中包括 NavigationWindowFrame或可承载 Xbap 的任何浏览器(包括 Internet Explorer 6 和更高版本,以及 Firefox 2.0 +)。Hyperlink navigation can only occur, however, if either the direct or indirect parent of a Hyperlink is a navigation host, including NavigationWindow, Frame, or any browser that can host XBAPs (which includes Internet Explorer 6 and later versions, and Firefox 2.0+). 有关详细信息,请参阅导航概述中的导航宿主主题。For more information, see the Navigation Hosts topic in Navigation Overview.

Hyperlink 强制实施子内容的强内容模型。Hyperlink enforces a strong content model for child content. 有关 Hyperlink 内容模型的详细信息,请参阅TextElement 内容模型概述See TextElement Content Model Overview for more information about the Hyperlink content model.

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

Constructors

Hyperlink()

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

Hyperlink(Inline)

初始化 Hyperlink 类的一个新实例,将指定的 Inline 对象作为新的 Hyperlink 的初始内容。Initializes a new instance of the Hyperlink class, taking a specified Inline object as the initial contents of the new Hyperlink.

Hyperlink(Inline, TextPointer)

初始化 Hyperlink 类的一个新实例,使用指定的 Inline 对象作为新 Hyperlink 的初始内容,并使用一个 TextPointer 指定新 Hyperlink 的插入位置。Initializes a new instance of the Hyperlink class, taking a specified Inline object as the initial contents of the new Hyperlink, and a TextPointer specifying an insertion position for the new Hyperlink.

Hyperlink(TextPointer, TextPointer)

初始化 Hyperlink 类的一个新实例,使用两个 TextPointer 对象,以指示该新 Hyperlink 所包含的选定内容的开始位置和结束位置。Initializes a new instance of the Hyperlink class, taking two TextPointer objects that indicate the beginning and end of a selection of content to be contained by the new Hyperlink.

Fields

ClickEvent

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

CommandParameterProperty

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

CommandProperty

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

CommandTargetProperty

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

NavigateUriProperty

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

RequestNavigateEvent

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

TargetNameProperty

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

Properties

AllowDrop

获取或设置一个值,该值指示此元素能否用作拖放操作的目标。Gets or sets a value that indicates whether this element can be used as the target of a drag-and-drop operation.

(Inherited from ContentElement)
AreAnyTouchesCaptured

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

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

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

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

获取或设置用于填充内容区域背景的 BrushGets or sets the Brush used to fill the background of the content area.

(Inherited from TextElement)
BaselineAlignment

获取或设置 Inline 元素的基线对齐方式。Gets or sets the baseline alignment for the Inline element.

(Inherited from Inline)
BaseUri

获取或设置 Hyperlink 的基 URI。Gets or sets a base URI for the Hyperlink.

BindingGroup

获取或设置用于该元素的 BindingGroupGets or sets the BindingGroup that is used for the element.

(Inherited from FrameworkContentElement)
Command

获取或设置要与 Hyperlink 关联的命令。Gets or sets a command to associate with the Hyperlink.

CommandBindings

获取与此元素关联的 CommandBinding 对象的集合。Gets a collection of CommandBinding objects that are associated with this element.

(Inherited from ContentElement)
CommandParameter

获取或设置与由 Command 属性指定的命令关联的命令参数。Gets or sets command parameters associated with the command specified by the Command property.

CommandTarget

获取或设置要对其执行由 Command 属性指定的命令的目标元素。Gets or sets a target element on which to execute the command specified by the Command property.

ContentEnd

获取表示元素中内容末尾的 TextPointerGets a TextPointer that represents the end of the content in the element.

(Inherited from TextElement)
ContentStart

获取表示元素中内容开头的 TextPointerGets a TextPointer that represents the start of content in the element.

(Inherited from TextElement)
ContextMenu

获取或设置每当通过用户界面 (UI)user interface (UI) 从此元素中请求上下文菜单时应该显示的上下文菜单元素。Gets or sets the context menu element that should appear whenever the context menu is requested via 用户界面 (UI)user interface (UI) from within this element.

(Inherited from FrameworkContentElement)
Cursor

获取或设置在鼠标指针位于此元素上时显示的光标。Gets or sets the cursor that displays when the mouse pointer is over this element.

(Inherited from FrameworkContentElement)
DataContext

获取或设置元素参与数据绑定时的数据上下文。Gets or sets the data context for an element when it participates in data binding.

(Inherited from FrameworkContentElement)
DefaultStyleKey

获取或设置用于在主题中查找此控件的样式模板的键。Gets or sets the key to use to find the style template for this control in themes.

(Inherited from FrameworkContentElement)
DependencyObjectType

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

(Inherited from DependencyObject)
Dispatcher

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

(Inherited from DispatcherObject)
ElementEnd

获取表示紧接元素末尾之后位置的 TextPointerGets a TextPointer that represents the position just after the end of the element.

(Inherited from TextElement)
ElementStart

获取表示紧邻元素开头之前位置的 TextPointerGets a TextPointer that represents the position just before the start of the element.

(Inherited from TextElement)
FlowDirection

获取或设置一个值,该值指定 Inline 元素中内容流的相对方向。Gets or sets a value that specifies the relative direction for flow of content within a Inline element.

(Inherited from Inline)
Focusable

获取或设置一个值,该值指示元素能否得到焦点。Gets or sets a value that indicates whether the element can receive focus.

(Inherited from ContentElement)
FocusVisualStyle

获取或设置一个对象,该对象允许自定义此元素在捕获到键盘焦点时要应用于此元素的外观、效果或其他样式特征。Gets or sets an object that enables customization of appearance, effects, or other style characteristics that will apply to this element when it captures keyboard focus.

(Inherited from FrameworkContentElement)
FontFamily

获取或设置元素内容的首选顶级字体系列。Gets or sets the preferred top-level font family for the content of the element.

(Inherited from TextElement)
FontSize

获取或设置元素内容的字体大小。Gets or sets the font size for the content of the element.

(Inherited from TextElement)
FontStretch

获取或设置元素内容的字体拉伸特征。Gets or sets the font-stretching characteristics for the content of the element.

(Inherited from TextElement)
FontStyle

获取或设置元素内容的字体样式。Gets or sets the font style for the content of the element.

(Inherited from TextElement)
FontWeight

获取或设置元素内容的顶级字体粗细。Gets or sets the top-level font weight for the content of the element.

(Inherited from TextElement)
ForceCursor

获取或设置一个值,该值指示此 FrameworkContentElement 是否应该强制用户界面 (UI)user interface (UI) 按照此实例的 Cursor 属性所声明的方式呈现光标。Gets or sets a value indicating whether this FrameworkContentElement should force the 用户界面 (UI)user interface (UI) to render the cursor as declared by this instance's Cursor property.

(Inherited from FrameworkContentElement)
Foreground

获取或设置要应用于元素内容的 BrushGets or sets the Brush to apply to the content of the element.

(Inherited from TextElement)
HasAnimatedProperties

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

(Inherited from ContentElement)
Inlines

获取包含顶级 InlineCollection 元素的 Inline,前者构成 Span 的内容。Gets an InlineCollection containing the top-level Inline elements that comprise the contents of the Span.

(Inherited from Span)
InputBindings

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

(Inherited from ContentElement)
InputScope

获取或设置此 FrameworkContentElement 使用的输入的上下文。Gets or sets the context for input used by this FrameworkContentElement.

(Inherited from FrameworkContentElement)
IsEnabled

获取或设置一个值,该值指示是否在用户界面 (UI)user interface (UI) 中启用了此元素。Gets or sets a value that indicates whether this element is enabled in the 用户界面 (UI)user interface (UI).

(Inherited from ContentElement)
IsEnabledCore

获取一个值,该值指示是否启用了 HyperlinkGets a value that indicates whether or not the Hyperlink is enabled.

IsFocused

获取一个值,该值确定此元素是否具有逻辑焦点。Gets a value that determines whether this element has logical focus.

(Inherited from ContentElement)
IsInitialized

获取一个值,该值指示是否已通过将此元素作为可扩展应用程序标记语言 (XAML)Extensible Application Markup Language (XAML) 加载或显式调用它的 EndInit() 方法初始化此元素。Gets a value indicating whether this element has been initialized, either by being loaded as 可扩展应用程序标记语言 (XAML)Extensible Application Markup Language (XAML), or by explicitly having its EndInit() method called.

(Inherited from FrameworkContentElement)
IsInputMethodEnabled

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

(Inherited from ContentElement)
IsKeyboardFocused

获取一个值,该值表示此元素是否具有键盘焦点。Gets a value that indicates whether this element has keyboard focus.

(Inherited from ContentElement)
IsKeyboardFocusWithin

获取一个值,该值指示键盘焦点是否位于元素或子元素内的任意位置。Gets a value that indicates whether keyboard focus is anywhere within the element or child elements.

(Inherited from ContentElement)
IsLoaded

获取一个值,该值指示是否已加载此元素以供显示。Gets a value indicating whether this element has been loaded for presentation.

(Inherited from FrameworkContentElement)
IsMouseCaptured

获取一个值,该值指示此元素是否捕获了鼠标。Gets a value that indicates whether the mouse is captured by this element.

(Inherited from ContentElement)
IsMouseCaptureWithin

获取一个值,该值确定此元素或其元素树中的子元素是否有鼠标捕获。Gets a value that determines whether mouse capture is held by this element or by child elements in its element tree.

(Inherited from ContentElement)
IsMouseDirectlyOver

获取一个值,该值指示在考虑元素组合的情况下,鼠标指针的位置是否对应于命中测试结果。Gets a value that indicates whether the position of the mouse pointer corresponds to hit test results, which take element compositing into account.

(Inherited from ContentElement)
IsMouseOver

获取一个值,该值指示鼠标指针是否位于此元素(包括可视子元素或其控件组合)上。Gets a value that indicates whether the mouse pointer is located over this element (including visual child elements, or its control compositing).

(Inherited from ContentElement)
IsSealed

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

(Inherited from DependencyObject)
IsStylusCaptured

获取一个值,该值指示是否将触笔捕获到此元素。Gets a value that indicates whether the stylus is captured to this element.

(Inherited from ContentElement)
IsStylusCaptureWithin

获取一个值,该值确定此元素(包括子元素和控件组合)是否具有触笔捕获。Gets a value that determines whether stylus capture is held by this element, including child elements and control compositing.

(Inherited from ContentElement)
IsStylusDirectlyOver

获取一个值,该值指示在考虑元素组合的情况下,触笔的位置是否与命中测试结果相对应。Gets a value that indicates whether the stylus position corresponds to hit test results, which take element compositing into account.

(Inherited from ContentElement)
IsStylusOver

获取一个值,该值指示触笔是否位于此元素(包括可视子元素)上。Gets a value that indicates whether the stylus is located over this element (including visual child elements).

(Inherited from ContentElement)
Language

获取或设置应用于单个元素的本地化/全球化语言信息。Gets or sets localization/globalization language information that applies to an individual element.

(Inherited from FrameworkContentElement)
LogicalChildren

获取一个可用于迭代该元素的逻辑子元素的枚举数。Gets an enumerator that can iterate the logical children of the element.

(Inherited from TextElement)
Name

获取或设置元素的标识名称。Gets or sets the identifying name of the element. 该名称提供实例引用,以便编程代码隐藏(如事件处理程序代码)引用曾在 XAMLXAML 的分析过程中构造的元素。The name provides an instance reference so that programmatic code-behind, such as event handler code, can refer to an element once it is constructed during parsing of XAMLXAML.

(Inherited from FrameworkContentElement)
NavigateUri

获取或设置激活 Hyperlink 时要导航到的 URI。Gets or sets a URI to navigate to when the Hyperlink is activated.

NextInline

获取与此元素对等的下一个 Inline 元素。Gets the next Inline element that is a peer to this element.

(Inherited from Inline)
OverridesDefaultStyle

获取或设置一个值,该值指示此元素是否合并了主题样式的样式属性。Gets or sets a value indicating whether this element incorporates style properties from theme styles.

(Inherited from FrameworkContentElement)
Parent

获取此元素的逻辑树中的父级。Gets the parent in the logical tree for this element.

(Inherited from FrameworkContentElement)
PreviousInline

获取与此元素对等的上一个 Inline 元素。Gets the previous Inline element that is a peer to this element.

(Inherited from Inline)
Resources

获取或设置当前本地定义的资源字典。Gets or sets the current locally-defined resource dictionary.

(Inherited from FrameworkContentElement)
SiblingInlines

获取一个 InlineCollection,它包含与此元素同级(对等)的 Inline 元素。Gets an InlineCollection that contains the Inline elements that are siblings (peers) to this element.

(Inherited from Inline)
Style

获取或设置此元素要使用的样式。Gets or sets the style to be used by this element.

(Inherited from FrameworkContentElement)
Tag

获取或设置任意对象值,该值可用于存储关于此元素的自定义信息。Gets or sets an arbitrary object value that can be used to store custom information about this element.

(Inherited from FrameworkContentElement)
TargetName

获取或设置 Hyperlink 的目标窗口或框架的名称。Gets or sets the name of a target window or frame for the Hyperlink.

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

获取一个 TextDecorationCollection,它包含要应用于此元素的文本修饰。Gets a TextDecorationCollection that contains text decorations to apply to this element.

(Inherited from Inline)
TextEffects

获取或设置应用于元素内容的文本效果集合。Gets or sets a collection of text effects to apply to the content of the element.

(Inherited from TextElement)
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 FrameworkContentElement)
TouchesCaptured

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

(Inherited from ContentElement)
TouchesCapturedWithin

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

(Inherited from ContentElement)
TouchesDirectlyOver

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

(Inherited from ContentElement)
TouchesOver

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

(Inherited from ContentElement)
Typography

获取该元素内容的当前有效的版式变体。Gets the currently effective typography variations for the content of the element.

(Inherited from TextElement)

Methods

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 ContentElement)
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 ContentElement)
AddLogicalChild(Object)

将提供的元素添加为此元素的子元素。Adds the provided element as a child of this element.

(Inherited from FrameworkContentElement)
AddToEventRoute(EventRoute, RoutedEventArgs)

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

(Inherited from ContentElement)
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 ContentElement)
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 ContentElement)
BeginAnimation(DependencyProperty, AnimationTimeline)

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

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

已在初始化元素之前调用。Called before an element is initialized.

(Inherited from FrameworkContentElement)
BeginStoryboard(Storyboard)

开始所提供的演示图板中包含的操作序列。Begins the sequence of actions that are contained in the provided storyboard.

(Inherited from FrameworkContentElement)
BeginStoryboard(Storyboard, HandoffBehavior)

开始所提供的演示图板中包含的操作序列,其中指定了在该属性经过动画处理后要发生的行为的选项。Begins the sequence of actions that are contained in the provided storyboard, with options specified for what should occur if the property is already animated.

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

开始所提供的演示图板中包含的操作序列,其中指定了在动画开始之后动画控件的状态。Begins the sequence of actions that are contained in the provided storyboard, with specified state for control of the animation after it is started.

(Inherited from FrameworkContentElement)
BringIntoView()

尝试将此元素放入其所在的任何可滚动区域内的视图中。Attempts to bring this element into view, within any scrollable regions it is contained within.

(Inherited from FrameworkContentElement)
CaptureMouse()

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

(Inherited from ContentElement)
CaptureStylus()

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

(Inherited from ContentElement)
CaptureTouch(TouchDevice)

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

(Inherited from ContentElement)
CheckAccess()

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

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

清除只读属性的本地值。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)

对指定依赖属性的值进行强制。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)
DoClick()

模拟用户单击 Hyperlink 的操作。Simulates the act of a user clicking the Hyperlink.

EndInit()

已在初始化元素后立即调用。Called immediately after an element is initialized.

(Inherited from FrameworkContentElement)
Equals(Object)

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

(Inherited from DependencyObject)
FindName(String)

查找具有提供的标识符名的元素。Finds an element that has the provided identifier name.

(Inherited from FrameworkContentElement)
FindResource(Object)

搜索具有指定键的资源,如果找不到请求的资源,则会引发异常。Searches for a resource with the specified key, and will throw an exception if the requested resource is not found.

(Inherited from FrameworkContentElement)
Focus()

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

(Inherited from ContentElement)
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 ContentElement)
GetBindingExpression(DependencyProperty)

获取指定属性的绑定的 BindingExpressionGets the BindingExpression for the specified property's binding.

(Inherited from FrameworkContentElement)
GetHashCode()

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

(Inherited from DependencyObject)
GetLocalValueEnumerator()

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

(Inherited from DependencyObject)
GetType()

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

(Inherited from Object)
GetUIParentCore()

如果没有视觉父级,则返回此元素的备用逻辑父级。Returns an alternative logical parent for this element if there is no visual parent. 在这种情况下,FrameworkContentElement 父级始终与 Parent 属性具有相同值。In this case, a FrameworkContentElement parent is always the same value as the Parent property.

(Inherited from FrameworkContentElement)
GetValue(DependencyProperty)

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

(Inherited from DependencyObject)
InvalidateProperty(DependencyProperty)

重新评估指定依赖属性的有效值。Re-evaluates the effective value for the specified dependency property.

(Inherited from DependencyObject)
MemberwiseClone()

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

(Inherited from Object)
MoveFocus(TraversalRequest)

将键盘焦点从此元素移到另一个元素。Moves the keyboard focus from this element to another element.

(Inherited from FrameworkContentElement)
OnClick()

处理 Click 路由事件。Handles the Click routed event.

OnContextMenuClosing(ContextMenuEventArgs)

每当 ContextMenuClosing 路由事件在其路由中到达此类时调用。Invoked whenever the ContextMenuClosing routed event reaches this class in its route. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

(Inherited from FrameworkContentElement)
OnContextMenuOpening(ContextMenuEventArgs)

每当 ContextMenuOpening 路由事件在其路由中到达此类时调用。Invoked whenever the ContextMenuOpening routed event reaches this class in its route. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

(Inherited from FrameworkContentElement)
OnCreateAutomationPeer()

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

OnDragEnter(DragEventArgs)

当某个未处理的 DragEnter 附加事件在其路由中到达派生自此类的某个元素时调用。Invoked when an unhandled DragEnter attached event reaches an element in its route that is derived from this class. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

(Inherited from ContentElement)
OnDragLeave(DragEventArgs)

当某个未处理的 DragLeave 附加事件在其路由中到达派生自此类的某个元素时调用。Invoked when an unhandled DragLeave attached event reaches an element in its route that is derived from this class. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

(Inherited from ContentElement)
OnDragOver(DragEventArgs)

当某个未处理的 DragOver 附加事件在其路由中到达派生自此类的某个元素时调用。Invoked when an unhandled DragOver attached event reaches an element in its route that is derived from this class. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

(Inherited from ContentElement)
OnDrop(DragEventArgs)

当某个未处理的 DragEnter 附加事件在其路由中到达派生自此类的某个元素时调用。Invoked when an unhandled DragEnter attached event reaches an element in its route that is derived from this class. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

(Inherited from ContentElement)
OnGiveFeedback(GiveFeedbackEventArgs)

当某个未处理的 GiveFeedback 附加事件在其路由中到达派生自此类的某个元素时调用。Invoked when an unhandled GiveFeedback attached event reaches an element in its route that is derived from this class. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

(Inherited from ContentElement)
OnGotFocus(RoutedEventArgs)

GotFocus 事件的类处理程序。Class handler for the GotFocus event.

(Inherited from FrameworkContentElement)
OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)

当某个未处理的 GotKeyboardFocus 附加事件在其路由中到达派生自此类的某个元素时调用。Invoked when an unhandled GotKeyboardFocus attached event reaches an element in its route that is derived from this class. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

(Inherited from ContentElement)
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 ContentElement)
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 ContentElement)
OnGotTouchCapture(TouchEventArgs)

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

(Inherited from ContentElement)
OnInitialized(EventArgs)

引发 Initialized 事件。Raises the Initialized event. 只要将 IsInitialized 设置为 true,就可以调用此方法。This method is invoked whenever IsInitialized is set to true.

(Inherited from FrameworkContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
OnKeyDown(KeyEventArgs)

处理 KeyDown 路由事件。Handles the KeyDown routed event.

OnKeyUp(KeyEventArgs)

当某个未处理的 KeyUp 附加事件在其路由中到达派生自此类的某个元素时调用。Invoked when an unhandled KeyUp attached event reaches an element in its route that is derived from this class. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

(Inherited from ContentElement)
OnLostFocus(RoutedEventArgs)

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

(Inherited from ContentElement)
OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)

当某个未处理的 LostKeyboardFocus 附加事件在其路由中到达派生自此类的某个元素时调用。Invoked when an unhandled LostKeyboardFocus attached event reaches an element in its route that is derived from this class. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

(Inherited from ContentElement)
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 ContentElement)
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 ContentElement)
OnLostTouchCapture(TouchEventArgs)

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

(Inherited from ContentElement)
OnMouseDown(MouseButtonEventArgs)

当某个未处理的 MouseDown 附加事件在其路由中到达派生自此类的某个元素时调用。Invoked when an unhandled MouseDown attached event reaches an element in its route that is derived from this class. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

(Inherited from ContentElement)
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 ContentElement)
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 ContentElement)
OnMouseLeftButtonDown(MouseButtonEventArgs)

处理 MouseLeftButtonDown 路由事件。Handles the MouseLeftButtonDown routed event.

OnMouseLeftButtonUp(MouseButtonEventArgs)

处理 MouseLeftButtonUp 路由事件。Handles the MouseLeftButtonUp routed event.

OnMouseMove(MouseEventArgs)

当某个未处理的 MouseMove 附加事件在其路由中到达派生自此类的某个元素时调用。Invoked when an unhandled MouseMove attached event reaches an element in its route that is derived from this class. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

(Inherited from ContentElement)
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 ContentElement)
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 ContentElement)
OnMouseUp(MouseButtonEventArgs)

当某个未处理的 MouseUp 路由事件在其路由中到达派生自此类的某个元素时调用。Invoked when an unhandled MouseUp routed event reaches an element in its route that is derived from this class. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

(Inherited from ContentElement)
OnMouseWheel(MouseWheelEventArgs)

当某个未处理的 MouseWheel 附加事件在其路由中到达派生自此类的某个元素时调用。Invoked when an unhandled MouseWheel attached event reaches an element in its route that is derived from this class. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

(Inherited from ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
OnPreviewKeyDown(KeyEventArgs)

当某个未处理的 PreviewKeyDown 附加事件在其路由中到达派生自此类的某个元素时调用。Invoked when an unhandled PreviewKeyDown attached event reaches an element in its route that is derived from this class. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

(Inherited from ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
OnPreviewTouchDown(TouchEventArgs)

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

(Inherited from ContentElement)
OnPreviewTouchMove(TouchEventArgs)

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

(Inherited from ContentElement)
OnPreviewTouchUp(TouchEventArgs)

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

(Inherited from ContentElement)
OnPropertyChanged(DependencyPropertyChangedEventArgs)

处理元素上存在的一个或多个依赖项属性的有效值已更改的通知。Handles notifications that one or more of the dependency properties that exist on the element have had their effective values changed.

(Inherited from TextElement)
OnQueryContinueDrag(QueryContinueDragEventArgs)

当某个未处理的 QueryContinueDrag 附加事件在其路由中到达派生自此类的某个元素时调用。Invoked when an unhandled QueryContinueDrag attached event reaches an element in its route that is derived from this class. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

(Inherited from ContentElement)
OnQueryCursor(QueryCursorEventArgs)

当某个未处理的 QueryCursor 附加事件在其路由中到达派生自此类的某个元素时调用。Invoked when an unhandled QueryCursor attached event reaches an element in its route that is derived from this class. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

(Inherited from ContentElement)
OnStyleChanged(Style, Style)

在此元素上使用的样式更改时调用。Invoked when the style that is in use on this element changes.

(Inherited from FrameworkContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
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 ContentElement)
OnTextInput(TextCompositionEventArgs)

当某个未处理的 TextInput 附加事件在其路由中到达派生自此类的某个元素时调用。Invoked when an unhandled TextInput attached event reaches an element in its route that is derived from this class. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

(Inherited from ContentElement)
OnToolTipClosing(ToolTipEventArgs)

每当 ToolTipClosing 路由事件在其路由中到达此类时调用。Invoked whenever the ToolTipClosing routed event reaches this class in its route. 实现此方法可为此事件添加类处理。Implement this method to add class handling for this event.

(Inherited from FrameworkContentElement)
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 FrameworkContentElement)
OnTouchDown(TouchEventArgs)

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

(Inherited from ContentElement)
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 ContentElement)
OnTouchLeave(TouchEventArgs)

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

(Inherited from ContentElement)
OnTouchMove(TouchEventArgs)

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

(Inherited from ContentElement)
OnTouchUp(TouchEventArgs)

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

(Inherited from ContentElement)
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. 此方法是密封的,不能对其进行重写。This method is sealed and cannot be overridden.

(Inherited from FrameworkContentElement)
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 ContentElement)
ReadLocalValue(DependencyProperty)

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

(Inherited from DependencyObject)
RegisterName(String, Object)

提供一个可简化对 NameScope 注册方法访问的访问器。Provides an accessor that simplifies access to the NameScope registration method.

(Inherited from FrameworkContentElement)
ReleaseAllTouchCaptures()

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

(Inherited from ContentElement)
ReleaseMouseCapture()

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

(Inherited from ContentElement)
ReleaseStylusCapture()

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

(Inherited from ContentElement)
ReleaseTouchCapture(TouchDevice)

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

(Inherited from ContentElement)
RemoveHandler(RoutedEvent, Delegate)

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

(Inherited from ContentElement)
RemoveLogicalChild(Object)

从该元素的逻辑树中移除指定的元素。Removes the specified element from the logical tree for this element.

(Inherited from FrameworkContentElement)
SetBinding(DependencyProperty, BindingBase)

基于已提供的绑定对象将一个绑定附加到此元素上。Attaches a binding to this element, based on the provided binding object.

(Inherited from FrameworkContentElement)
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 FrameworkContentElement)
SetCurrentValue(DependencyProperty, Object)

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

(Inherited from DependencyObject)
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 FrameworkContentElement)
SetValue(DependencyProperty, Object)

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

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

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

(Inherited from ContentElement)
ShouldSerializeInlines(XamlDesignerSerializationManager)

返回一个值,该值指示在 Span 对象的序列化期间,是否应对 Run 元素的内容进行序列化。Returns a value that indicates whether the content of a Span element should be serialized during serialization of a Run object.

(Inherited from Span)
ShouldSerializeInputBindings()

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

(Inherited from ContentElement)
ShouldSerializeProperty(DependencyProperty)

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

(Inherited from DependencyObject)
ShouldSerializeResources()

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

(Inherited from FrameworkContentElement)
ShouldSerializeStyle()

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

(Inherited from FrameworkContentElement)
ToString()

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

(Inherited from Object)
TryFindResource(Object)

搜索具有指定键的资源,如果找到,则返回该资源。Searches for a resource with the specified key, and returns that resource if found.

(Inherited from FrameworkContentElement)
UnregisterName(String)

简化对 NameScope 注销方法的访问。Simplifies access to the NameScope de-registration method.

(Inherited from FrameworkContentElement)
UpdateDefaultStyle()

将默认样式重新应用至当前 FrameworkContentElementReapplies the default style to the current FrameworkContentElement.

(Inherited from FrameworkContentElement)
VerifyAccess()

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

(Inherited from DispatcherObject)

Events

Click

Hyperlink 上单击鼠标左键时发生。Occurs when the left mouse button is clicked on a Hyperlink.

ContextMenuClosing

在元素上的任何上下文菜单关闭之前发生。Occurs just before any context menu on the element is closed.

(Inherited from FrameworkContentElement)
ContextMenuOpening

在元素上的任何上下文菜单打开时发生。Occurs when any context menu on the element is opened.

(Inherited from FrameworkContentElement)
DataContextChanged

当此元素的数据上下文更改时发生。Occurs when this element's data context changes.

(Inherited from FrameworkContentElement)
DragEnter

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

(Inherited from ContentElement)
DragLeave

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

(Inherited from ContentElement)
DragOver

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

(Inherited from ContentElement)
Drop

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

(Inherited from ContentElement)
FocusableChanged

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

(Inherited from ContentElement)
GiveFeedback

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

(Inherited from ContentElement)
GotFocus

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

(Inherited from ContentElement)
GotKeyboardFocus

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

(Inherited from ContentElement)
GotMouseCapture

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

(Inherited from ContentElement)
GotStylusCapture

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

(Inherited from ContentElement)
GotTouchCapture

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

(Inherited from ContentElement)
Initialized

初始化此 FrameworkContentElement 时发生。Occurs when this FrameworkContentElement is initialized. 这与 IsInitialized 属性值从 false(或未定义)更改为 true 的情况相符。This coincides with cases where the value of the IsInitialized property changes from false (or undefined) to true.

(Inherited from FrameworkContentElement)
IsEnabledChanged

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

(Inherited from ContentElement)
IsKeyboardFocusedChanged

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

(Inherited from ContentElement)
IsKeyboardFocusWithinChanged

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

(Inherited from ContentElement)
IsMouseCapturedChanged

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

(Inherited from ContentElement)
IsMouseCaptureWithinChanged

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

(Inherited from ContentElement)
IsMouseDirectlyOverChanged

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

(Inherited from ContentElement)
IsStylusCapturedChanged

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

(Inherited from ContentElement)
IsStylusCaptureWithinChanged

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

(Inherited from ContentElement)
IsStylusDirectlyOverChanged

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

(Inherited from ContentElement)
KeyDown

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

(Inherited from ContentElement)
KeyUp

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

(Inherited from ContentElement)
Loaded

当对元素进行布局、呈现,且可将其用于交互时发生。Occurs when the element is laid out, rendered, and ready for interaction.

(Inherited from FrameworkContentElement)
LostFocus

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

(Inherited from ContentElement)
LostKeyboardFocus

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

(Inherited from ContentElement)
LostMouseCapture

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

(Inherited from ContentElement)
LostStylusCapture

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

(Inherited from ContentElement)
LostTouchCapture

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

(Inherited from ContentElement)
MouseDown

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

(Inherited from ContentElement)
MouseEnter

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

(Inherited from ContentElement)
MouseLeave

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

(Inherited from ContentElement)
MouseLeftButtonDown

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

(Inherited from ContentElement)
MouseLeftButtonUp

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

(Inherited from ContentElement)
MouseMove

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

(Inherited from ContentElement)
MouseRightButtonDown

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

(Inherited from ContentElement)
MouseRightButtonUp

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

(Inherited from ContentElement)
MouseUp

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

(Inherited from ContentElement)
MouseWheel

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

(Inherited from ContentElement)
PreviewDragEnter

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

(Inherited from ContentElement)
PreviewDragLeave

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

(Inherited from ContentElement)
PreviewDragOver

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

(Inherited from ContentElement)
PreviewDrop

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

(Inherited from ContentElement)
PreviewGiveFeedback

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

(Inherited from ContentElement)
PreviewGotKeyboardFocus

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

(Inherited from ContentElement)
PreviewKeyDown

在此元素聚焦于键盘并且按下某个键时发生。Occurs when a key is pressed while the keyboard is focused on this element.

(Inherited from ContentElement)
PreviewKeyUp

在此元素聚焦于键盘并且松开某个键时发生。Occurs when a key is released while the keyboard is focused on this element.

(Inherited from ContentElement)
PreviewLostKeyboardFocus

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

(Inherited from ContentElement)
PreviewMouseDown

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

(Inherited from ContentElement)
PreviewMouseLeftButtonDown

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

(Inherited from ContentElement)
PreviewMouseLeftButtonUp

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

(Inherited from ContentElement)
PreviewMouseMove

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

(Inherited from ContentElement)
PreviewMouseRightButtonDown

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

(Inherited from ContentElement)
PreviewMouseRightButtonUp

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

(Inherited from ContentElement)
PreviewMouseUp

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

(Inherited from ContentElement)
PreviewMouseWheel

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

(Inherited from ContentElement)
PreviewQueryContinueDrag

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

(Inherited from ContentElement)
PreviewStylusButtonDown

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

(Inherited from ContentElement)
PreviewStylusButtonUp

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

(Inherited from ContentElement)
PreviewStylusDown

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

(Inherited from ContentElement)
PreviewStylusInAirMove

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

(Inherited from ContentElement)
PreviewStylusInRange

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

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

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

(Inherited from ContentElement)
PreviewStylusSystemGesture

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

(Inherited from ContentElement)
PreviewStylusUp

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

(Inherited from ContentElement)
PreviewTextInput

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

(Inherited from ContentElement)
PreviewTouchDown

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

(Inherited from ContentElement)
PreviewTouchMove

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

(Inherited from ContentElement)
PreviewTouchUp

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

(Inherited from ContentElement)
QueryContinueDrag

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

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

在请求定位事件时发生。Occurs when navigation events are requested.

SourceUpdated

当参与此元素上的绑定的任意关联数据源更改时发生。Occurs when any associated data source participating in a binding on this element changes.

(Inherited from FrameworkContentElement)
StylusButtonDown

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

(Inherited from ContentElement)
StylusButtonUp

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

(Inherited from ContentElement)
StylusDown

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

(Inherited from ContentElement)
StylusEnter

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

(Inherited from ContentElement)
StylusInAirMove

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

(Inherited from ContentElement)
StylusInRange

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

(Inherited from ContentElement)
StylusLeave

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

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

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

(Inherited from ContentElement)
StylusSystemGesture

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

(Inherited from ContentElement)
StylusUp

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

(Inherited from ContentElement)
TargetUpdated

当参与此元素上的绑定的任意关联目标属性更改时发生。Occurs when any associated target property participating in a binding on this element changes.

(Inherited from FrameworkContentElement)
TextInput

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

(Inherited from ContentElement)
ToolTipClosing

在元素上的任何工具提示关闭之前发生。Occurs just before any tooltip on the element is closed.

(Inherited from FrameworkContentElement)
ToolTipOpening

在元素上的任何工具提示打开时发生。Occurs when any tooltip on the element is opened.

(Inherited from FrameworkContentElement)
TouchDown

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

(Inherited from ContentElement)
TouchEnter

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

(Inherited from ContentElement)
TouchLeave

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

(Inherited from ContentElement)
TouchMove

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

(Inherited from ContentElement)
TouchUp

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

(Inherited from ContentElement)
Unloaded

当从已加载元素的元素树中移除元素时发生。Occurs when the element is removed from an element tree of loaded elements.

(Inherited from FrameworkContentElement)

Explicit Interface Implementations

IAddChild.AddChild(Object)

添加子对象。Adds a child object.

(Inherited from TextElement)
IAddChild.AddText(String)

将节点的文本内容添加到对象。Adds the text content of a node to the object.

(Inherited from TextElement)
IQueryAmbient.IsAmbientPropertyAvailable(String)

有关此成员的说明,请参见 IsAmbientPropertyAvailable(String) 方法。For a description of this member, see the IsAmbientPropertyAvailable(String) method.

(Inherited from FrameworkContentElement)
IUriContext.BaseUri

获取或设置 Hyperlink 的基 URI。Gets or sets a base URI for the Hyperlink.

Applies to