Figure 类

定义

一个内联级别的用于承载图形的流内容元素。An inline-level flow content element used to host a figure. 图形是带有位置属性的流内容的一部分,可以独立于 中的主内容流自定义该部分FlowDocumentA figure is a portion of flow content with placement properties that can be customized independently from the primary content flow within a FlowDocument.

public ref class Figure : System::Windows::Documents::AnchoredBlock
public class Figure : System.Windows.Documents.AnchoredBlock
type Figure = class
    inherit AnchoredBlock
Public Class Figure
Inherits AnchoredBlock
继承

示例

下面的示例定义包含 FloaterFigure 元素的 FlowDocumentThe following example defines a FlowDocument that contains both Floater and Figure elements.

<FlowDocumentReader>
  <FlowDocument 
    ColumnWidth="400" 
    IsOptimalParagraphEnabled="True" IsHyphenationEnabled="True"
    >
    <Section FontSize="12">
      <Paragraph>
        <Bold>Neptune</Bold> (planet), major planet in the solar system, eighth planet
        from the Sun and fourth largest in diameter.  Neptune maintains an almost constant
        distance, about 4,490 million km (about 2,790 million mi), from the Sun.  Neptune
        revolves outside the orbit of Uranus and for most of its orbit moves inside the
        elliptical path of the outermost planet Pluto (see Solar System). Every 248 years,
        Pluto’s elliptical orbit brings the planet inside Neptune’s nearly circular orbit
        for about 20 years, temporarily making Neptune the farthest planet from the Sun.
        The last time Pluto’s orbit brought it inside Neptune’s orbit was in 1979. In
        1999 Pluto’s orbit carried it back outside Neptune’s orbit.
        
        <!-- This Figure uses relative measurements for width and height. -->
        <Figure 
          Width="0.25" Height="0.1" Background="GhostWhite" 
          HorizontalAnchor="PageLeft" 
          HorizontalOffset="100" VerticalOffset="20"
          >
          <Paragraph 
            FontStyle="Italic" TextAlignment="Left"
            Background="Beige" Foreground="DarkGreen"
            >
            Neptune has 72 times Earth's volume...
          </Paragraph>
        </Figure>
        
        <!-- This Floater uses relative measurements for width. -->
        <Floater 
          Background="GhostWhite" 
          Width="0.4" HorizontalAlignment="Left"
          >
          <Table CellSpacing="5">
            <Table.Columns>
              <TableColumn Width="155"/>
              <TableColumn Width="130"/>
            </Table.Columns>

            <TableRowGroup>
              <TableRow>
                <TableCell ColumnSpan="3">
                  <Paragraph>Neptune Stats</Paragraph>
                </TableCell>
              </TableRow>

              <TableRow Background="LightGoldenrodYellow" FontSize="12">
                <TableCell>
                  <Paragraph FontWeight="Bold">Mean Distance from Sun</Paragraph>
                </TableCell>
                <TableCell>
                  <Paragraph>4,504,000,000 km</Paragraph>
                </TableCell>
              </TableRow>

              <TableRow FontSize="12" Background="LightGray">
                <TableCell>
                  <Paragraph FontWeight="Bold">Mean Diameter</Paragraph>
                </TableCell>
                <TableCell>
                  <Paragraph>49,532 km</Paragraph>
                </TableCell>
              </TableRow>

              <TableRow Background="LightGoldenrodYellow" FontSize="12">
                <TableCell>
                  <Paragraph FontWeight="Bold">Approximate Mass</Paragraph>
                </TableCell>
                <TableCell>
                  <Paragraph>1.0247e26 kg</Paragraph>
                </TableCell>
              </TableRow>
              <TableRow>
                <TableCell ColumnSpan="4">
                  <Paragraph FontSize="10" FontStyle="Italic">
                    Information from the
                    <Hyperlink 
                      NavigateUri="http://encarta.msn.com/encnet/refpages/artcenter.aspx"
                      >Encarta</Hyperlink>
                    web site.
                  </Paragraph>
                </TableCell>
              </TableRow>
            </TableRowGroup>
          </Table>
        </Floater>
      </Paragraph>
      <Paragraph>
        Astronomers believe Neptune has an inner rocky core that is surrounded by a vast
        ocean of water mixed with rocky material. From the inner core, this ocean extends
        upward until it meets a gaseous atmosphere of hydrogen, helium, and trace amounts
        of methane. Neptune has four rings and 11 known moons. Even though Neptune's volume
        is 72 times Earth’s volume, its mass is only 17.15 times Earth’s mass. Because of
        its size, scientists classify Neptune—along with Jupiter, Saturn, and Uranus—as
        one of the giant or Jovian planets (so-called because they resemble Jupiter).
      </Paragraph>
      <Paragraph>
        <Figure 
          Width="140" Height="50" 
          Background="GhostWhite" TextAlignment="Left" 
          HorizontalAnchor="PageCenter" WrapDirection="Both"
          >
          <Paragraph FontStyle="Italic" Background="Beige" Foreground="DarkGreen" >
            Neptune has an orbital period of ~20 years...
          </Paragraph>
        </Figure>
        Mathematical theories of astronomy led to the discovery of Neptune. To account for
        wobbles in the orbit of the planet Uranus, British astronomer John Couch Adams and
        French astronomer Urbain Jean Joseph Leverrier independently calculated the existence
        and position of a new planet in 1845 and 1846, respectively. They theorized that the
        gravitational attraction of this planet for Uranus was causing the wobbles in Uranus’s
        orbit. Using information from Leverrier, German astronomer Johann Gottfried Galle first
        observed the planet in 1846.
      </Paragraph>
    </Section>
  </FlowDocument>
</FlowDocumentReader>

下图显示了此示例的呈现效果。The following figure shows how this example renders.

屏幕快照: Floater 和 FlowDocument 中的图形Screenshot: Floaters and Figures in a FlowDocument

注解

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

FigureFloater 元素通常用于突出显示或强调设计部分内容,以在主内容流中承载支持的图像或其他内容,或注入松散相关的内容(如广告)。Figure or Floater elements are often used to highlight or accentuate portions of content, to host supporting images or other content within the main content flow, or to inject loosely related content such as advertisements.

FigureFloater 在多种方面有所不同,适用于不同的方案。Figure and Floater differ in several ways and are used for different scenarios.

Figure:Figure:

  • 可定位:可设置其水平和垂直定位点,以便相对于页面、内容、栏或段落进行停靠。Can be positioned: You can set its horizontal and vertical anchors to dock it relative to the page, content, column or paragraph. 还可以使用其 HorizontalOffsetVerticalOffset 属性指定任意偏移量。You can also use its HorizontalOffset and VerticalOffset properties to specify arbitrary offsets.

  • 可以调整为多个列的大小:可以将 Figure 的高度和宽度设置为页面、内容或列的高度或宽度的倍数。Is sizable to more than one column: You can set Figure height and width to multiples of page, content or column height or width. 请注意,对于页面和内容,倍数不能大于 1。Note that in the case of page and content, multiples greater than 1 are not allowed. 例如,可以将 Figure 的宽度设置为 "0.5 页" 或 "0.25 content" 或 "2 列"。For example, you can set the width of a Figure to be "0.5 page" or "0.25 content" or "2 Column". 还可将高度和宽度设置为绝对像素值。You can also set height and width to absolute pixel values.

  • 不分页:如果 Figure 内的内容不能容纳在 Figure内,它将呈现合适的内容,并丢失剩余内容。Does not paginate: If the content inside a Figure does not fit inside the Figure, it will render whatever content does fit and the remaining content is lost

Floater:Floater:

  • 无法定位,可在能够为其提供空间的任何位置呈现。Cannot be positioned and will render wherever space can be made available for it. 不能设置 Floater的偏移量或定位点。You cannot set the offset or anchor a Floater.

  • 无法调整为多列:默认情况下,在一列 Floater 大小。Cannot be sized to more than one column: By default, Floater sizes at one column. 它有一个可设置为绝对像素值的 Width 属性,但如果此值大于一个列宽,则将被忽略,并且浮标将调整为一列。It has a Width property that can be set to an absolute pixel value, but if this value is greater than one column width it is ignored and the floater is sized at one column. 您可以通过设置正确的像素宽度来将其大小调整为小于一列,但调整大小不是列相对的,因此 "0.5 列" 不是 Floater 宽度的有效表达式。You can size it to less than one column by setting the correct pixel width, but sizing is not column-relative, so "0.5Column" is not a valid expression for Floater width. Floater 没有 height 属性,且无法设置其高度,其高度取决于内容Floater has no height property and it's height cannot be set, it's height depends on the content

  • Floater 分页:如果其内容的指定宽度超过1列,则浮标会中断和分页到下一列、下一页等。Floater paginates: If its content at its specified width extends to more than 1 column height, floater breaks and paginates to the next column, the next page, etc.

Figure 是放置要控制其大小和位置的独立内容的好地方,并确信内容符合指定的大小。Figure is a good place to put standalone content where you want to control the size and positioning, and are confident that the content will fit in the specified size. Floater 是放置更多自由流动内容的好位置,该内容与主页内容相似,但会与主页内容分离。Floater is a good place to put more free-flowing content that flows similar to the main page content, but is separated from it.

构造函数

Figure()

初始化 Figure 类的新的空实例。Initializes a new, empty instance of the Figure class.

Figure(Block)

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

Figure(Block, TextPointer)

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

字段

CanDelayPlacementProperty

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

HeightProperty

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

HorizontalAnchorProperty

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

HorizontalOffsetProperty

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

VerticalAnchorProperty

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

VerticalOffsetProperty

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

WidthProperty

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

WrapDirectionProperty

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

属性

AllowDrop

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

(继承自 ContentElement)
AreAnyTouchesCaptured

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

(继承自 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.

(继承自 ContentElement)
AreAnyTouchesDirectlyOver

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

(继承自 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.

(继承自 ContentElement)
Background

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

(继承自 TextElement)
BaselineAlignment

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

(继承自 Inline)
BindingGroup

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

(继承自 FrameworkContentElement)
Blocks

获取一个 BlockCollection,其中包含组成元素内容的顶级 Block 元素。Gets a BlockCollection containing the top-level Block elements that comprise the contents of the element.

(继承自 AnchoredBlock)
BorderBrush

获取或设置绘制元素边框时使用的 BrushGets or sets a Brush to use when painting the element's border.

(继承自 AnchoredBlock)
BorderThickness

获取或设置元素的边框粗细。Gets or sets the border thickness for the element.

(继承自 AnchoredBlock)
CanDelayPlacement

获取或设置一个值,该值指示此图形是否可延迟放入内容流中。Gets or sets a value that indicates whether this figure can delay its placement in the flow of content.

CommandBindings

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

(继承自 ContentElement)
ContentEnd

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

(继承自 TextElement)
ContentStart

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

(继承自 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.

(继承自 FrameworkContentElement)
Cursor

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

(继承自 FrameworkContentElement)
DataContext

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

(继承自 FrameworkContentElement)
DefaultStyleKey

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

(继承自 FrameworkContentElement)
DependencyObjectType

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

(继承自 DependencyObject)
Dispatcher

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

(继承自 DispatcherObject)
ElementEnd

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

(继承自 TextElement)
ElementStart

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

(继承自 TextElement)
FlowDirection

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

(继承自 Inline)
Focusable

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

(继承自 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.

(继承自 FrameworkContentElement)
FontFamily

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

(继承自 TextElement)
FontSize

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

(继承自 TextElement)
FontStretch

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

(继承自 TextElement)
FontStyle

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

(继承自 TextElement)
FontWeight

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

(继承自 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.

(继承自 FrameworkContentElement)
Foreground

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

(继承自 TextElement)
HasAnimatedProperties

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

(继承自 ContentElement)
Height

获取或设置一个值,该值指示 Figure 元素的高度。Gets or sets a value that indicates the height of a Figure element.

HorizontalAnchor

获取或设置一个值,该值指示内容沿水平方向锚定到的位置。Gets or sets a value that indicates the position that content is anchored to in the horizontal direction.

HorizontalOffset

获取或设置一个值,该值表示 Figure 沿水平方向从其基线偏移的距离。Gets or sets a value that indicates the distance that a Figure is offset from its baseline in the horizontal direction.

InputBindings

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

(继承自 ContentElement)
InputScope

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

(继承自 FrameworkContentElement)
IsEnabled

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

(继承自 ContentElement)
IsEnabledCore

获取一个值,该值成为派生类中 IsEnabled 的返回值。Gets a value that becomes the return value of IsEnabled in derived classes.

(继承自 ContentElement)
IsFocused

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

(继承自 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.

(继承自 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.

(继承自 ContentElement)
IsKeyboardFocused

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

(继承自 ContentElement)
IsKeyboardFocusWithin

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

(继承自 ContentElement)
IsLoaded

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

(继承自 FrameworkContentElement)
IsMouseCaptured

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

(继承自 ContentElement)
IsMouseCaptureWithin

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

(继承自 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.

(继承自 ContentElement)
IsMouseOver

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

(继承自 ContentElement)
IsSealed

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

(继承自 DependencyObject)
IsStylusCaptured

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

(继承自 ContentElement)
IsStylusCaptureWithin

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

(继承自 ContentElement)
IsStylusDirectlyOver

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

(继承自 ContentElement)
IsStylusOver

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

(继承自 ContentElement)
Language

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

(继承自 FrameworkContentElement)
LineHeight

获取或设置每行内容的高度。Gets or sets the height of each line of content.

(继承自 AnchoredBlock)
LineStackingStrategy

获取或设置一种机制,根据该机制来为文本元素内的每一行文字确定一个行框。Gets or sets the mechanism by which a line box is determined for each line of text within the text element.

(继承自 AnchoredBlock)
LogicalChildren

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

(继承自 TextElement)
Margin

获取或设置元素的边距粗细。Gets or sets the margin thickness for the element.

(继承自 AnchoredBlock)
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.

(继承自 FrameworkContentElement)
NextInline

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

(继承自 Inline)
OverridesDefaultStyle

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

(继承自 FrameworkContentElement)
Padding

获取或设置元素的填充厚度。Gets or sets the padding thickness for the element.

(继承自 AnchoredBlock)
Parent

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

(继承自 FrameworkContentElement)
PreviousInline

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

(继承自 Inline)
Resources

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

(继承自 FrameworkContentElement)
SiblingInlines

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

(继承自 Inline)
Style

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

(继承自 FrameworkContentElement)
Tag

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

(继承自 FrameworkContentElement)
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.

(继承自 FrameworkContentElement)
TextAlignment

获取或设置一个值,该值指示文本内容的水平对齐方式。Gets or sets a value that indicates the horizontal alignment of text content.

(继承自 AnchoredBlock)
TextDecorations

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

(继承自 Inline)
TextEffects

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

(继承自 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).

(继承自 FrameworkContentElement)
TouchesCaptured

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

(继承自 ContentElement)
TouchesCapturedWithin

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

(继承自 ContentElement)
TouchesDirectlyOver

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

(继承自 ContentElement)
TouchesOver

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

(继承自 ContentElement)
Typography

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

(继承自 TextElement)
VerticalAnchor

获取或设置一个值,该值指示内容沿垂直方向锚定到的位置。Gets or sets a value that indicates the position that content is anchored to in the vertical direction.

VerticalOffset

获取或设置一个值,该值指示 Figure 沿垂直方向从其基线偏移的距离。Gets or sets a value that indicates the distance that a Figure is offset from its baseline in the vertical direction.

Width

获取或设置一个值,该值指示 Figure 元素的宽度。Gets or sets a value that indicates the width of a Figure element.

WrapDirection

获取或设置一个值,该值指示内容可用其环绕 Figure 的允许方式。Gets or sets a value that indicates the allowable ways in which content can flow around a Figure.

方法

AddHandler(RoutedEvent, Delegate)

为指定的路由事件添加路由事件处理程序,并将该处理程序添加到当前元素的处理程序集合中。Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element.

(继承自 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.

(继承自 ContentElement)
AddLogicalChild(Object)

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

(继承自 FrameworkContentElement)
AddToEventRoute(EventRoute, RoutedEventArgs)

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

(继承自 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.

(继承自 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.

(继承自 ContentElement)
BeginAnimation(DependencyProperty, AnimationTimeline)

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

(继承自 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.

(继承自 ContentElement)
BeginInit()

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

(继承自 FrameworkContentElement)
BeginStoryboard(Storyboard)

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

(继承自 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.

(继承自 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.

(继承自 FrameworkContentElement)
BringIntoView()

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

(继承自 FrameworkContentElement)
CaptureMouse()

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

(继承自 ContentElement)
CaptureStylus()

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

(继承自 ContentElement)
CaptureTouch(TouchDevice)

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

(继承自 ContentElement)
CheckAccess()

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

(继承自 DispatcherObject)
ClearValue(DependencyProperty)

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

(继承自 DependencyObject)
ClearValue(DependencyPropertyKey)

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

(继承自 DependencyObject)
CoerceValue(DependencyProperty)

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

(继承自 DependencyObject)
EndInit()

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

(继承自 FrameworkContentElement)
Equals(Object)

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

(继承自 DependencyObject)
FindName(String)

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

(继承自 FrameworkContentElement)
FindResource(Object)

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

(继承自 FrameworkContentElement)
Focus()

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

(继承自 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.

(继承自 ContentElement)
GetBindingExpression(DependencyProperty)

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

(继承自 FrameworkContentElement)
GetHashCode()

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

(继承自 DependencyObject)
GetLocalValueEnumerator()

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

(继承自 DependencyObject)
GetType()

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

(继承自 Object)
GetUIParentCore()

如果没有视觉父级,则返回此元素的备用逻辑父级。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.

(继承自 FrameworkContentElement)
GetValue(DependencyProperty)

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

(继承自 DependencyObject)
InvalidateProperty(DependencyProperty)

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

(继承自 DependencyObject)
MemberwiseClone()

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

(继承自 Object)
MoveFocus(TraversalRequest)

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

(继承自 FrameworkContentElement)
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.

(继承自 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.

(继承自 FrameworkContentElement)
OnCreateAutomationPeer()

针对 Windows Presentation Foundation (WPF) 基础结构返回特定于类的 AutomationPeer 实现。Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

(继承自 ContentElement)
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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 ContentElement)
OnGotFocus(RoutedEventArgs)

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

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 ContentElement)
OnGotTouchCapture(TouchEventArgs)

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

(继承自 ContentElement)
OnInitialized(EventArgs)

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

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 ContentElement)
OnKeyDown(KeyEventArgs)

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

(继承自 ContentElement)
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.

(继承自 ContentElement)
OnLostFocus(RoutedEventArgs)

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

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 ContentElement)
OnLostTouchCapture(TouchEventArgs)

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

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 ContentElement)
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.

(继承自 ContentElement)
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.

(继承自 ContentElement)
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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 ContentElement)
OnPreviewTouchDown(TouchEventArgs)

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

(继承自 ContentElement)
OnPreviewTouchMove(TouchEventArgs)

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

(继承自 ContentElement)
OnPreviewTouchUp(TouchEventArgs)

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

(继承自 ContentElement)
OnPropertyChanged(DependencyPropertyChangedEventArgs)

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

(继承自 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.

(继承自 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.

(继承自 ContentElement)
OnStyleChanged(Style, Style)

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

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 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.

(继承自 FrameworkContentElement)
OnTouchDown(TouchEventArgs)

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

(继承自 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.

(继承自 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.

(继承自 ContentElement)
OnTouchMove(TouchEventArgs)

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

(继承自 ContentElement)
OnTouchUp(TouchEventArgs)

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

(继承自 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.

(继承自 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).

(继承自 ContentElement)
ReadLocalValue(DependencyProperty)

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

(继承自 DependencyObject)
RegisterName(String, Object)

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

(继承自 FrameworkContentElement)
ReleaseAllTouchCaptures()

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

(继承自 ContentElement)
ReleaseMouseCapture()

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

(继承自 ContentElement)
ReleaseStylusCapture()

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

(继承自 ContentElement)
ReleaseTouchCapture(TouchDevice)

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

(继承自 ContentElement)
RemoveHandler(RoutedEvent, Delegate)

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

(继承自 ContentElement)
RemoveLogicalChild(Object)

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

(继承自 FrameworkContentElement)
SetBinding(DependencyProperty, BindingBase)

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

(继承自 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.

(继承自 FrameworkContentElement)
SetCurrentValue(DependencyProperty, Object)

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

(继承自 DependencyObject)
SetResourceReference(DependencyProperty, Object)

搜索具有指定名称的资源,并且为指定的属性设置一个指向该资源的资源引用。Searches for a resource with the specified name and sets up a resource reference to it for the specified property.

(继承自 FrameworkContentElement)
SetValue(DependencyProperty, Object)

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

(继承自 DependencyObject)
SetValue(DependencyPropertyKey, Object)

设置一个只读依赖属性的本地值,该值由依赖属性的 DependencyPropertyKey 标识符指定。Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.

(继承自 DependencyObject)
ShouldSerializeBlocks(XamlDesignerSerializationManager)

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

(继承自 AnchoredBlock)
ShouldSerializeCommandBindings()

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

(继承自 ContentElement)
ShouldSerializeInputBindings()

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

(继承自 ContentElement)
ShouldSerializeProperty(DependencyProperty)

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

(继承自 DependencyObject)
ShouldSerializeResources()

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

(继承自 FrameworkContentElement)
ShouldSerializeStyle()

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

(继承自 FrameworkContentElement)
ToString()

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

(继承自 Object)
TryFindResource(Object)

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

(继承自 FrameworkContentElement)
UnregisterName(String)

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

(继承自 FrameworkContentElement)
UpdateDefaultStyle()

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

(继承自 FrameworkContentElement)
VerifyAccess()

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

(继承自 DispatcherObject)

事件

ContextMenuClosing

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

(继承自 FrameworkContentElement)
ContextMenuOpening

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

(继承自 FrameworkContentElement)
DataContextChanged

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

(继承自 FrameworkContentElement)
DragEnter

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

(继承自 ContentElement)
DragLeave

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

(继承自 ContentElement)
DragOver

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

(继承自 ContentElement)
Drop

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

(继承自 ContentElement)
FocusableChanged

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

(继承自 ContentElement)
GiveFeedback

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

(继承自 ContentElement)
GotFocus

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

(继承自 ContentElement)
GotKeyboardFocus

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

(继承自 ContentElement)
GotMouseCapture

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

(继承自 ContentElement)
GotStylusCapture

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

(继承自 ContentElement)
GotTouchCapture

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

(继承自 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.

(继承自 FrameworkContentElement)
IsEnabledChanged

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

(继承自 ContentElement)
IsKeyboardFocusedChanged

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

(继承自 ContentElement)
IsKeyboardFocusWithinChanged

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

(继承自 ContentElement)
IsMouseCapturedChanged

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

(继承自 ContentElement)
IsMouseCaptureWithinChanged

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

(继承自 ContentElement)
IsMouseDirectlyOverChanged

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

(继承自 ContentElement)
IsStylusCapturedChanged

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

(继承自 ContentElement)
IsStylusCaptureWithinChanged

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

(继承自 ContentElement)
IsStylusDirectlyOverChanged

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

(继承自 ContentElement)
KeyDown

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

(继承自 ContentElement)
KeyUp

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

(继承自 ContentElement)
Loaded

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

(继承自 FrameworkContentElement)
LostFocus

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

(继承自 ContentElement)
LostKeyboardFocus

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

(继承自 ContentElement)
LostMouseCapture

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

(继承自 ContentElement)
LostStylusCapture

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

(继承自 ContentElement)
LostTouchCapture

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

(继承自 ContentElement)
MouseDown

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

(继承自 ContentElement)
MouseEnter

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

(继承自 ContentElement)
MouseLeave

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

(继承自 ContentElement)
MouseLeftButtonDown

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

(继承自 ContentElement)
MouseLeftButtonUp

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

(继承自 ContentElement)
MouseMove

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

(继承自 ContentElement)
MouseRightButtonDown

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

(继承自 ContentElement)
MouseRightButtonUp

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

(继承自 ContentElement)
MouseUp

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

(继承自 ContentElement)
MouseWheel

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

(继承自 ContentElement)
PreviewDragEnter

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

(继承自 ContentElement)
PreviewDragLeave

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

(继承自 ContentElement)
PreviewDragOver

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

(继承自 ContentElement)
PreviewDrop

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

(继承自 ContentElement)
PreviewGiveFeedback

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

(继承自 ContentElement)
PreviewGotKeyboardFocus

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

(继承自 ContentElement)
PreviewKeyDown

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

(继承自 ContentElement)
PreviewKeyUp

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

(继承自 ContentElement)
PreviewLostKeyboardFocus

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

(继承自 ContentElement)
PreviewMouseDown

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

(继承自 ContentElement)
PreviewMouseLeftButtonDown

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

(继承自 ContentElement)
PreviewMouseLeftButtonUp

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

(继承自 ContentElement)
PreviewMouseMove

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

(继承自 ContentElement)
PreviewMouseRightButtonDown

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

(继承自 ContentElement)
PreviewMouseRightButtonUp

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

(继承自 ContentElement)
PreviewMouseUp

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

(继承自 ContentElement)
PreviewMouseWheel

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

(继承自 ContentElement)
PreviewQueryContinueDrag

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

(继承自 ContentElement)
PreviewStylusButtonDown

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

(继承自 ContentElement)
PreviewStylusButtonUp

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

(继承自 ContentElement)
PreviewStylusDown

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

(继承自 ContentElement)
PreviewStylusInAirMove

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

(继承自 ContentElement)
PreviewStylusInRange

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

(继承自 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.

(继承自 ContentElement)
PreviewStylusOutOfRange

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

(继承自 ContentElement)
PreviewStylusSystemGesture

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

(继承自 ContentElement)
PreviewStylusUp

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

(继承自 ContentElement)
PreviewTextInput

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

(继承自 ContentElement)
PreviewTouchDown

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

(继承自 ContentElement)
PreviewTouchMove

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

(继承自 ContentElement)
PreviewTouchUp

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

(继承自 ContentElement)
QueryContinueDrag

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

(继承自 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.

(继承自 ContentElement)
SourceUpdated

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

(继承自 FrameworkContentElement)
StylusButtonDown

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

(继承自 ContentElement)
StylusButtonUp

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

(继承自 ContentElement)
StylusDown

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

(继承自 ContentElement)
StylusEnter

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

(继承自 ContentElement)
StylusInAirMove

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

(继承自 ContentElement)
StylusInRange

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

(继承自 ContentElement)
StylusLeave

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

(继承自 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.

(继承自 ContentElement)
StylusOutOfRange

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

(继承自 ContentElement)
StylusSystemGesture

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

(继承自 ContentElement)
StylusUp

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

(继承自 ContentElement)
TargetUpdated

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

(继承自 FrameworkContentElement)
TextInput

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

(继承自 ContentElement)
ToolTipClosing

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

(继承自 FrameworkContentElement)
ToolTipOpening

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

(继承自 FrameworkContentElement)
TouchDown

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

(继承自 ContentElement)
TouchEnter

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

(继承自 ContentElement)
TouchLeave

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

(继承自 ContentElement)
TouchMove

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

(继承自 ContentElement)
TouchUp

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

(继承自 ContentElement)
Unloaded

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

(继承自 FrameworkContentElement)

显式接口实现

IAddChild.AddChild(Object)

添加子对象。Adds a child object.

(继承自 TextElement)
IAddChild.AddText(String)

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

(继承自 TextElement)
IQueryAmbient.IsAmbientPropertyAvailable(String)

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

(继承自 FrameworkContentElement)

适用于

另请参阅