System.Windows.Media Namespace

提供可以实现丰富媒体的集成(包括 Windows Presentation Foundation (WPF) 应用程序中的绘图、文本和音频/视频内容)的类型。 Provides types that enable integration of rich media, including drawings, text, and audio/video content in Windows Presentation Foundation (WPF) applications.

AdornerHitTestResult

表示通过调用 AdornerHitTest(Point) 方法返回的数据。Represents data returned from calling the AdornerHitTest(Point) method.

ArcSegment

表示两点之间的一条椭圆弧。Represents an elliptical arc between two points.

BezierSegment

表示在两个点之间绘制的一条三次方贝塞尔曲线。Represents a cubic Bezier curve drawn between two points.

BitmapCache

创建并缓存 UIElement 的位图表示形式。Creates and caches a bitmap representation of a UIElement.

BitmapCacheBrush

使用缓存的内容绘制一个区域。Paints an area with cached content.

Brush

定义用于绘制图形对象的对象。Defines objects used to paint graphical objects. 派生自 Brush 的类描述如何绘制区域。Classes that derive from Brush describe how the area is painted.

BrushConverter

用于将 Brush 对象转换为其他对象类型或从其他对象类型转换为该对象。Used to convert a Brush object to or from another object type.

Brushes

实现一组预定义的 SolidColorBrush 对象。Implements a set of predefined SolidColorBrush objects.

CacheMode

为缓存 UIElement 提供基实现。Provides a base implementation for caching a UIElement.

CacheModeConverter

CacheMode 从一种数据类型转换成另一种数据类型。Converts a CacheMode from one data type to another.

CharacterMetrics

表示用于对设备字体字符进行布局的规格。Represents the metrics used to lay out a character in a device font.

CharacterMetricsDictionary

表示通过 Unicode 标量值编制索引的设备字体的 CharacterMetrics 对象字典。Represents a dictionary of CharacterMetrics objects for a device font that is indexed by Unicode scalar values.

ColorContext

表示与位图图像相关联的国际色彩联合会 (ICC) 或图像颜色管理 (ICM) 颜色配置文件。Represents the International Color Consortium (ICC) or Image Color Management (ICM) color profile that is associated with a bitmap image.

ColorConverter

Color 的实例与其他类型的实例之间进行转换。Converts instances of other types to and from an instance of Color.

Colors

实现一组预定义的颜色。Implements a set of predefined colors.

CombinedGeometry

表示由两个 Geometry 对象的组合定义的二维几何形状。Represents a 2-D geometric shape defined by the combination of two Geometry objects.

CompositionTarget

表示您的应用程序的显示图面。Represents the display surface of your application.

ContainerVisual

管理 Visual 对象的集合。Manages a collection of Visual objects.

DashStyle

表示 Pen 将应用的虚线和间距的序列。Represents the sequence of dashes and gaps that will be applied by a Pen.

DashStyles

实现一组预定义的 DashStyle 对象。Implements a set of predefined DashStyle objects.

DisableDpiAwarenessAttribute

允许 WPF 应用程序对所有用户界面元素禁用每英寸点数 (dpi) 识别。Allows WPF applications to disable dots per inch (dpi) awareness for all user interface elements.

DoubleCollection

表示一个由 Double 值组成的有序集合。Represents an ordered collection of Double values.

DoubleCollectionConverter

DoubleCollection 实例与其他类型的实例之间进行转换。Converts instances of other types to and from a DoubleCollection.

Drawing

描述 2-D 绘图的抽象类。Abstract class that describes a 2-D drawing. 此类不能由你的代码继承。This class cannot be inherited by your code.

DrawingBrush

使用 Drawing 绘制区域,该对象包括形状、文本、视频、图像或其他绘制项。Paints an area with a Drawing, which can include shapes, text, video, images, or other drawings.

DrawingCollection

表示 Drawing 对象的有序集合。Represents an ordered collection of Drawing objects.

DrawingContext

使用 draw、push 和 pop 命令描述可视内容。Describes visual content using draw, push, and pop commands.

DrawingGroup

表示可以作为单个绘图进行运算的绘图集合。Represents a collection of drawings that can be operated upon as a single drawing.

DrawingImage

一个对内容使用 DrawingImageSourceAn ImageSource that uses a Drawing for content.

DrawingVisual

DrawingVisual 是可用于在屏幕上呈现矢量图形的视觉对象。DrawingVisual is a visual object that can be used to render vector graphics on the screen. 内容由系统保留。The content is persisted by the system.

EllipseGeometry

表示一个圆或椭圆的几何图形。Represents the geometry of a circle or ellipse.

ExceptionEventArgs

提供媒体事件的错误异常数据。Provides error exception data for media events.

FamilyTypeface

指定 FontFamily 所支持的一种字样的详细信息。Specifies the details of a single typeface supported by a FontFamily.

FamilyTypefaceCollection

表示 FamilyTypeface 实例的集合。Represents a collection of FamilyTypeface instances.

FontEmbeddingManager

提供物理字体和复合字体嵌入功能。Provides functionality for physical and composite font embedding.

FontFamily

表示一系列相关字体。Represents a family of related fonts.

FontFamilyConverter

String 类型的实例与 FontFamily 实例之间进行转换。Converts instances of the String type to and from FontFamily instances.

FontFamilyMap

定义要用于一组指定的 Unicode 码位和一种特定于区域性的语言的 FontFamilyDefines which FontFamily to use for a specified set of Unicode code points and a culture-specific language.

FontFamilyMapCollection

表示 FontFamilyMap 对象的有序集合。Represents an ordered collection of FontFamilyMap objects.

FontFamilyValueSerializer

String 的实例与 FontFamily 的实例之间进行转换。Converts instances of String to and from instances of FontFamily.

Fonts

FontFamilyTypeface 对象提供枚举支持。Provides enumeration support for FontFamily and Typeface objects.

FormattedText

为 Windows Presentation Foundation (WPF) 应用程序中的绘图文本提供低级别的控制。Provides low-level control for drawing text in Windows Presentation Foundation (WPF) applications.

GeneralTransform

为点和矩形之类的对象提供通用的变换支持。Provides generalized transformation support for objects, such as points and rectangles. 这是一个抽象类。This is an abstract class.

GeneralTransformCollection

表示 GeneralTransform 对象的有序集合。Represents an ordered collection of GeneralTransform objects.

GeneralTransformGroup

表示 GeneralTransform,是其 GeneralTransformCollection 中的变换的一种复合形式。Represents a GeneralTransform that is a composite of the transforms in its GeneralTransformCollection.

Geometry

从此抽象基类派生的类定义几何形状。Classes that derive from this abstract base class define geometric shapes. Geometry 对象可用于剪辑、命中测试以及呈现二维图形数据。Geometry objects can be used for clipping, hit-testing, and rendering 2-D graphic data.

GeometryCollection

表示 Geometry 对象集合。Represents a collection of Geometry objects.

GeometryConverter

Geometry 实例与其他类型的实例之间进行转换。Converts instances of other types to and from instances of Geometry.

GeometryDrawing

使用指定的 BrushPen 绘制 GeometryDraws a Geometry using the specified Brush and Pen.

GeometryGroup

表示由其他 Geometry 对象组成的复合几何图形。Represents a composite geometry, composed of other Geometry objects.

GeometryHitTestParameters

指定 Geometry 作为用于命中测试可视化树的参数。Specifies a Geometry as the parameter to be used for hit testing a visual tree.

GeometryHitTestResult

返回命中测试的结果,该测试使用 Geometry 作为命中测试参数。Returns the results of a hit test that uses a Geometry as a hit test parameter.

GlyphRun

表示一序列标志符号,这些标志符号来自具有一种字号和一种呈现样式的一种字体。Represents a sequence of glyphs from a single face of a single font at a single size, and with a single rendering style.

GlyphRunDrawing

表示一个呈现 DrawingGlyphRun 对象。Represents a Drawing object that renders a GlyphRun.

GlyphTypeface

指定与磁盘上的字体文件相对应的物理字体。Specifies a physical font face that corresponds to a font file on the disk.

GradientBrush

一个抽象类,描述由渐变停止点组成的渐变。An abstract class that describes a gradient, composed of gradient stops. GradientBrush 继承的类描述了解释渐变停止点的不同方式。Classes that inherit from GradientBrush describe different ways of interpreting gradient stops.

GradientStop

描述渐变中转换点的位置和颜色。Describes the location and color of a transition point in a gradient.

GradientStopCollection

表示可按索引单独访问的 GradientStop 对象的集合。Represents a collection of GradientStop objects that can be individually accessed by index.

GuidelineSet

表示有助于将呈现的数字与设备像素网格对齐的参考线的集合。Represents a collection of guide lines that can assist in adjusting rendered figures to a device pixel grid.

HitTestParameters

定义命中测试的参数。Defines parameters for hit testing. 从此公共基类派生的类,可用于包括 PointHitTestParametersGeometryHitTestParameters 的实用命中测试。Classes derived from this common base class that can be used for practical hit testing include PointHitTestParameters and GeometryHitTestParameters.

HitTestResult

提供多个派生类的基类,它表示命中测试的返回值。Provides the base class for several derived classes that represents the return value from a hit test.

HostVisual

表示一个可在任何地方连接到父可视化树的 Visual 对象。Represents a Visual object that can be connected anywhere to a parent visual tree.

ImageBrush

使用图像绘制区域。Paints an area with an image.

ImageDrawing

Rect 定义的区域中绘制一个图像。Draws an image within a region defined by a Rect.

ImageMetadata

为所有对与图像处理相关的 API 执行的元数据操作定义一个基类。Defines a base class for all metadata operations on imaging related APIs. 这是一个抽象类。This is an abstract class.

ImageSource

表示具有宽度、高度和 ImageMetadata 的对象类型,如 BitmapSourceDrawingImageRepresents an object type that has a width, height, and ImageMetadata such as a BitmapSource and a DrawingImage. 这是一个抽象类。This is an abstract class.

ImageSourceConverter

ImageSource 与其他数据类型之间进行相互转换。Converts a ImageSource to and from other data types.

ImageSourceValueSerializer

String 的实例与 ImageSource 的实例之间进行转换。Converts instances of String to and from instances of ImageSource.

Int32Collection

表示 Int32 值的集合。Represents a collection of Int32 values.

Int32CollectionConverter

Int32Collection 与其他数据类型之间进行转换。Converts an Int32Collection to and from other data types.

InvalidWmpVersionException

安装的 Microsoft Windows Media Player 版本不受支持时引发的异常。The exception that is thrown when the installed Microsoft Windows Media Player version is not supported.

LanguageSpecificStringDictionary

表示用于以不同语言表示对象名称的字符串的字典。Represents a dictionary of strings that are used to represent the name of an object in different languages.

LinearGradientBrush

使用线性渐变绘制区域。Paints an area with a linear gradient.

LineGeometry

表示一条直线。Represents the geometry of a line.

LineSegment

PathFigure 中的两个点之间创建一条直线。Creates a line between two points in a PathFigure.

MatrixConverter

Matrix 实例与其他类型的实例之间进行转换。Converts instances of other types to and from a Matrix.

MatrixTransform

创建一个任意仿射矩阵转换,用于操作二维平面中的对象或坐标系。Creates an arbitrary affine matrix transformation that is used to manipulate objects or coordinate systems in a 2-D plane.

MediaClock

通过 MediaTimeline 维护媒体的计时状态。Maintains the timing state for media through a MediaTimeline.

MediaPlayer

为绘图提供媒体播放功能。Provides media playback for drawings.

MediaScriptCommandEventArgs

提供有关 ScriptCommandScriptCommand 事件的数据。Provides data for the ScriptCommand and ScriptCommand events.

MediaTimeline

为媒体内容提供 TimelineProvides a Timeline for media content.

NumberSubstitution

指定如何用不同的区域性显示文本中的数字。Specifies how numbers in text are displayed in different cultures.

PathFigure

表示几何图形的一个子部分、一系列单独连接的二维几何线段。Represents a subsection of a geometry, a single connected series of two-dimensional geometric segments.

PathFigureCollection

表示共同构成几何图形 PathGeometryPathFigure 对象的集合。Represents a collection of PathFigure objects that collectively make up the geometry of a PathGeometry.

PathFigureCollectionConverter

PathFigureCollection 实例与其他类型的实例之间进行转换。Converts instances of other types to and from a PathFigureCollection.

PathGeometry

表示一个可能由弧、曲线、椭圆、直线和矩形组成的复杂形状。Represents a complex shape that may be composed of arcs, curves, ellipses, lines, and rectangles.

PathSegment

表示 PathFigure 对象的一段。Represents a segment of a PathFigure object.

PathSegmentCollection

表示可按索引单独访问的 PathSegment 对象的集合。Represents a collection of PathSegment objects that can be individually accessed by index.

Pen

描述如何绘制形状的轮廓。Describes how a shape is outlined.

PixelFormatConverter

PixelFormat 与其他数据类型之间进行相互转换。Converts a PixelFormat to and from other data types.

PixelFormats

表示受支持像素格式的集合。Represents the collection of supported pixel formats.

PointCollection

表示可按照索引单独访问的 Point 值的集合。Represents a collection of Point values that can be individually accessed by index.

PointCollectionConverter

PointCollection 实例与其他类型的实例之间进行转换。Converts instances of other types to and from a PointCollection.

PointHitTestParameters

Point 指定为将用于可视对象的命中测试的参数。Specifies a Point as the parameter to be used for hit testing of a visual object.

PointHitTestResult

表示将 Point 用作命中测试参数的命中测试的结果。Represents the results of a hit test that uses a Point as a hit test parameter.

PolyBezierSegment

表示一条或多条三次方贝塞尔曲线。Represents one or more cubic Bezier curves.

PolyLineSegment

表示由 PointCollection 定义的线段集合,每个 Point 指定线段的终点。Represents a set of line segments defined by a PointCollection with each Point specifying the end point of a line segment.

PolyQuadraticBezierSegment

表示一系列二次贝塞尔线段。Represents a set of quadratic Bezier segments.

QuadraticBezierSegment

PathFigure 中两点之间创建二次贝塞尔曲线。Creates a quadratic Bezier curve between two points in a PathFigure.

RadialGradientBrush

使用径向渐变绘制区域。Paints an area with a radial gradient. 焦点定义渐变的开始,而圆定义渐变的终点。A focal point defines the beginning of the gradient, and a circle defines the end point of the gradient.

RectangleGeometry

描述一个二维的矩形。Describes a two-dimensional rectangle.

RenderCapability

允许 WPF 应用程序为其关联的 Dispatcher 对象查询当前的呈现层并注册更改通知。Enables WPF applications to query for the current rendering tier for their associated Dispatcher object and to register for notification of changes.

RenderingEventArgs

Rendering 事件的必需参数。Required arguments for the Rendering event.

RenderOptions

提供用于控制对象的呈现行为的选项。Provides options for controlling the rendering behavior of objects.

RequestCachePolicyConverter

分析 RequestCachePolicyParses a RequestCachePolicy.

RotateTransform

在二维 x-y 坐标系内围绕指定点按顺时针方向旋转对象。Rotates an object clockwise about a specified point in a 2-D x-y coordinate system.

ScaleTransform

在 2-D x-y 坐标系统内缩放对象。Scales an object in the 2-D x-y coordinate system.

SkewTransform

表示 2-D 倾斜。Represents a 2-D skew.

SolidColorBrush

使用纯色绘制区域。Paints an area with a solid color.

StreamGeometry

定义几何形状,并使用 StreamGeometryContext 进行描述。Defines a geometric shape, described using a StreamGeometryContext. 此几何图形是 PathGeometry 的轻量替代图形:它不支持数据绑定、动画或修改。This geometry is light-weight alternative to PathGeometry: it does not support data binding, animation, or modification.

StreamGeometryContext

使用绘图命令描述几何图形。Describes a geometry using drawing commands. 此类与 StreamGeometry 类结合使用,以创建不支持数据绑定、动画或修改的轻量几何图形。This class is used with the StreamGeometry class to create a lightweight geometry that does not support data binding, animation, or modification.

TextEffect

表示可应用于文本对象的文本效果。Represents a text effect that can be applied to text objects.

TextEffectCollection

TextEffect 对象集合提供集合支持。Provides collection support for a collection of TextEffect objects.

TextOptions

定义一组影响文本在元素中的显示方式的附加属性。Defines a set of attached properties that affect the way text is displayed in an element.

TileBrush

描述使用一个或多个图块绘制区域的方法。Describes a way to paint a region by using one or more tiles.

Transform

定义实现二维平面中的转换的功能。Defines functionality that enables transformations in a 2-D plane. 转换包括旋转 (RotateTransform)、缩放 (ScaleTransform)、倾斜 (SkewTransform) 和平移 (TranslateTransform)。Transformations include rotation (RotateTransform), scale (ScaleTransform), skew (SkewTransform), and translation (TranslateTransform). 此类层次结构不同于 Matrix 结构,因为它是一个类,而且支持动画和枚举语义。This class hierarchy differs from the Matrix structure because it is a class and it supports animation and enumeration semantics.

TransformCollection

表示可按索引单独访问的 Transform 对象的集合。Represents a collection of Transform objects that can be individually accessed by index.

TransformConverter

Transform 对象转换为其他对象类型或从其他对象类型转换为该对象。Converts a Transform object to or from another object type.

TransformGroup

表示由其他 Transform 对象组成的复合 TransformRepresents a composite Transform composed of other Transform objects.

TranslateTransform

在二维 x-y 坐标系中平移(移动)对象。Translates (moves) an object in the 2-D x-y coordinate system.

Typeface

表示 FontFamilyFontWeightFontStyleFontStretch 的组合。Represents a combination of FontFamily, FontWeight, FontStyle, and FontStretch.

VectorCollection

表示一个由 Vector 值组成的有序集合。Represents an ordered collection of Vector values.

VectorCollectionConverter

VectorCollection 实例与其他类型的实例之间进行转换。Converts instances of other types to and from a VectorCollection.

VideoDrawing

播放媒体文件。Plays a media file. 如果媒体为视频文件,VideoDrawing 将其绘制到指定矩形。If the media is a video file, the VideoDrawing draws it to the specified rectangle.

Visual

为 WPF 中的呈现提供支持,其中包括命中测试、坐标转换和边界框计算。Provides rendering support in WPF, which includes hit testing, coordinate transformation, and bounding box calculations.

VisualBrush

使用 Visual 绘制区域。Paints an area with a Visual.

VisualCollection

表示 Visual 对象的有序集合。Represents an ordered collection of Visual objects.

VisualTarget

提供跨线程边界将一个可视化树连接到另一个可视化树的功能。Provides functionality for connecting one visual tree to another visual tree across thread boundaries.

VisualTreeHelper

提供一些实用工具方法,用于执行涉及可视化树中的节点的常规任务。Provides utility methods that perform common tasks involving nodes in a visual tree.

结构

Color

从 alpha、红色、绿色和蓝色通道角度描述一种颜色。Describes a color in terms of alpha, red, green, and blue channels.

DoubleCollection.Enumerator

枚举 DoubleCollection 中的 Double 项。Enumerates Double items in a DoubleCollection.

DrawingCollection.Enumerator

枚举 DrawingCollection 中的 Drawing 项。Enumerates Drawing items in a DrawingCollection.

GeneralTransformCollection.Enumerator

枚举 GeneralTransformCollection 中的 GeneralTransform 项。Enumerates GeneralTransform items in a GeneralTransformCollection.

GeometryCollection.Enumerator

枚举 GeometryCollection 中的 Geometry 项。Enumerates Geometry items in a GeometryCollection.

GradientStopCollection.Enumerator

枚举 GradientStopCollection 中的 GradientStop 项。Enumerates GradientStop items in a GradientStopCollection.

Int32Collection.Enumerator

枚举 Int32Collection 中的 Int32 项。Enumerates Int32 items in a Int32Collection.

Matrix

表示用于在二维空间中进行转换的 3x3 仿射转换矩阵。Represents a 3x3 affine transformation matrix used for transformations in 2-D space.

PathFigureCollection.Enumerator

枚举 PathFigureCollection 中的 PathFigure 项。Enumerates PathFigure items in a PathFigureCollection.

PathSegmentCollection.Enumerator

支持对 PathSegmentCollection 执行简单迭代。Supports a simple iteration over a PathSegmentCollection.

PixelFormat

定义图像的像素格式和基于像素的图面。Defines a pixel format for images and pixel-based surfaces.

PixelFormatChannelMask

为特定像素格式定义位掩码和移位Defines the bit mask and shift for a specific pixel formats

PointCollection.Enumerator

枚举 PointCollection 中的 Point 项。Enumerates Point items in a PointCollection.

TextEffectCollection.Enumerator

枚举 TextEffectCollection 中的 TextEffect 项。Enumerates TextEffect items in a TextEffectCollection.

TransformCollection.Enumerator

支持对 TransformCollection 执行简单迭代。Supports a simple iteration over a TransformCollection.

VectorCollection.Enumerator

枚举 VectorCollection 中的 Vector 项。Enumerates Vector items in a VectorCollection.

VisualCollection.Enumerator

枚举 VisualCollection 中的 Visual 项。Enumerates Visual items in a VisualCollection.

枚举

AlignmentX

描述如何在容器中水平放置内容。Describes how content is positioned horizontally in a container.

AlignmentY

描述如何在容器中垂直放置内容。Describes how content is positioned vertically in a container.

BitmapScalingMode

指定用于缩放位图图像的算法。Specifies which algorithm is used to scale bitmap images.

BrushMappingMode

指定 Brush 使用的坐标系。Specifies the coordinate system used by a Brush.

CachingHint

指定是否缓存图块画笔对象。Specifies whether to cache tiled brush objects.

ClearTypeHint

一个枚举,它向呈现引擎提示,可以用 ClearType 呈现文本。An enumeration that specifies a hint to the rendering engine that text can be rendered with ClearType.

ColorInterpolationMode

确定插入渐变颜色的方式。Determines how the colors in a gradient are interpolated.

EdgeMode

确定非文本绘图基元的边缘的呈现方式。Determines how the edges of non-text drawing primitives are rendered.

FillRule

指定如何组合 PathFigure 中包含的 Geometry 对象的相交区域,以便形成 Geometry 的区域。Specifies how the intersecting areas of PathFigure objects contained in a Geometry are combined to form the area of the Geometry.

FontEmbeddingRight

描述在 OpenType 字体文件中指定的字体嵌入权限。Describes font embedding permissions specified in an OpenType font file.

GeometryCombineMode

指定可用于合并两个几何图形的不同方法。Specifies the different methods by which two geometries can be combined.

GradientSpreadMethod

指定如何在渐变画笔的渐变向量或空间外部绘制渐变。Specifies how to draw the gradient outside a gradient brush's gradient vector or space.

HitTestFilterBehavior

在命中测试筛选器回叫方法中指定命中测试的返回行为。Specifies the return behavior of a hit test in a hit test filter callback method.

HitTestResultBehavior

确定在命中测试期间是否继续任何剩余可见对象的枚举。Determines whether to continue the enumeration of any remaining visual objects during a hit test.

IntersectionDetail

提供有关 GeometryHitTestParameters 中的几何图形与点击过的可视对象之间的交集的信息。Provides information about the intersection between the geometries in the GeometryHitTestParameters and the visual which was hit.

NumberCultureSource

指定如何确定文本运行中的数字区域性。Specifies how the culture for numbers in a text run is determined.

NumberSubstitutionMethod

定义一个枚举类,该枚举类指定对文本运行中的数字执行的数字替换的类型。Defines an enumerator class that specifies the type of number substitution to perform on numbers in a text run.

PenDashCap

Describes the shape at the end of each dash segment.

PenLineCap

描述直线或线段末端的形状。Describes the shape at the end of a line or segment.

PenLineJoin

描述联接两条线或线段的形状。Describes the shape that joins two lines or segments.

Stretch

描述如何调整内容大小以填充为其分配的空间。Describes how content is resized to fill its allocated space.

StyleSimulations

定义用于描述字体模拟样式的枚举数类。Defines an enumerator class that describes the simulation style of a font.

SweepDirection

定义椭圆弧的绘制方向。Defines the direction an elliptical arc is drawn.

TextFormattingMode

定义 TextFormatter 类支持的格式设置方法。Defines the formatting methods supported by the TextFormatter class.

TextHintingMode

定义静态文本或动画文本的呈现行为。Defines the rendering behavior of static or animated text.

TextRenderingMode

为文本定义支持的呈现模式。Defines the supported rendering modes for text.

TileMode

描述 TileBrush 如何将磁贴绘制到输出区域上。Describes how a TileBrush paints tiles onto an output area.

ToleranceType

确定容错值的解释方式。Determines the means by which an error tolerance value is interpreted.

委托

HitTestFilterCallback

表示一个回调方法,该方法指定可视化树中不进行命中测试处理的部分Represents the callback method that specifies parts of the visual tree to omit from hit test processing

HitTestResultCallback

表示用于自定义命中测试的回叫。Represents a callback that is used to customize hit testing. WPF 调用 HitTestResultCallback,向用户报告命中测试交集。WPF invokes the HitTestResultCallback to report hit test intersections to the user.