System.Windows Namespace

此命名空间提供了一些重要的 Windows Presentation Foundation (WPF) 基元素类、各种支持 WPF 属性系统和事件逻辑的类以及由 WPF 核心和框架更加广泛使用的其他类型。 Provides several important Windows Presentation Foundation (WPF) base element classes, various classes that support the WPF property system and event logic, and other types that are more broadly consumed by the WPF core and framework.

Application

封装 Windows Presentation Foundation 应用程序。Encapsulates a Windows Presentation Foundation application.

AttachedPropertyBrowsableAttribute

为报告附加属性使用范围的 .NET Framework 特性提供基类。Provides a base class for .NET Framework attributes that report the use scope of attached properties.

AttachedPropertyBrowsableForChildrenAttribute

指定附加属性具有扩展至逻辑树中子元素的可浏览范围。Specifies that an attached property has a browsable scope that extends to child elements in the logical tree.

AttachedPropertyBrowsableForTypeAttribute

指定附加属性只能供从指定类型派生的元素浏览。Specifies that an attached property is browsable only for elements that derive from a specified type.

AttachedPropertyBrowsableWhenAttributePresentAttribute

指定附加属性仅在一个元素上可浏览,该元素还具有另一个特定 .NET Framework 特性应用到其类定义。Specifies that an attached property is only browsable on an element that also has another specific .NET Framework attribute applied to its class definition.

AutoResizedEventArgs

AutoResized 引发的 HwndSource 事件提供数据。Provides data for the AutoResized event raised by HwndSource.

BaseCompatibilityPreferences

包含指定应用程序相对于新的 WPF 功能(在 WindowsBase 程序集中)应如何运行的属性。Contains properties that specify how an application should behave relative to new WPF features that are in the WindowsBase assembly.

Clipboard

提供便于将数据传入和传出系统剪贴板的静态方法。Provides static methods that facilitate transferring data to and from the system Clipboard.

ColorConvertedBitmapExtension

实现一个能够创建 ColorConvertedBitmap 的标记扩展。Implements a markup extension that enables ColorConvertedBitmap creation. ColorConvertedBitmap 没有嵌入的配置文件,而该配置文件基于源和目标值。A ColorConvertedBitmap does not have an embedded profile, the profile instead being based on source and destination values.

ComponentResourceKey

定义或引用基于外部程序集中的类名以及一个附加标识符的资源键。Defines or references resource keys based on class names in external assemblies, as well as an additional identifier.

Condition

表示 MultiTriggerMultiDataTrigger 的条件,它们两个将根据一组条件对属性值应用更改。Represents a condition for the MultiTrigger and the MultiDataTrigger, which apply changes to property values based on a set of conditions.

ConditionCollection

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

ContentElement

为内容元素提供 WPF 核心级基类。Provides a WPF core-level base class for content elements. 内容元素设计用于流样式显示,它们使用面向标记的直观布局模型和精心设计的简单对象模型。Content elements are designed for flow-style presentation, using an intuitive markup-oriented layout model and a deliberately simple object model.

ContentOperations

提供静态实用工具方法,用于获取或设置 ContentElement 在元素树中的位置。Provides static utility methods for getting or setting the position of a ContentElement in an element tree.

CoreCompatibilityPreferences

包含指定应用程序相对于位于 PresentationCore 程序集中的 WPF 功能的行为方式的属性。Contains properties that specify how an application should behave relative to WPF features that are in the PresentationCore assembly.

CornerRadiusConverter

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

CultureInfoIetfLanguageTagConverter

CultureInfo 实例与其他数据类型之间进行转换。Converts instances of CultureInfo to and from other data types.

DataFormat

通过使用格式名称和数字 ID 来表示数据格式。Represents a data format by using a format name and numeric ID.

DataFormats

提供一组预定义数据格式名,可用于标识剪贴板或拖放操作中可用的数据格式。Provides a set of predefined data format names that can be used to identify data formats available in the clipboard or drag-and-drop operations.

DataObject

提供 IDataObject 接口的基本实现,该接口为传输数据定义与格式无关的机制。Provides a basic implementation of the IDataObject interface, which defines a format-independent mechanism for transferring data.

DataObjectCopyingEventArgs

DataObject.CopyingArguments for the DataObject.Copying 事件的参数。event.

DataObjectEventArgs

为与 DataObject 类关联的事件提供抽象基类。Provides an abstract base class for events associated with the DataObject class.

DataObjectPastingEventArgs

包含 DataObject.PastingContains arguments for the DataObject.Pasting 事件的参数。event.

DataObjectSettingDataEventArgs

包含 DataObject.SettingDataContains arguments for the DataObject.SettingData 事件的参数。event.

DataTemplate

描述数据对象的可视结构。Describes the visual structure of a data object.

DataTemplateKey

表示 DataTemplate 类的资源键。Represents the resource key for the DataTemplate class.

DataTrigger

表示一个触发器,它会在绑定数据满足指定条件时应用属性值或执行操作。Represents a trigger that applies property values or performs actions when the bound data meets a specified condition.

DeferrableContent

表示作为流保留在 BAML 中的可推迟内容。Represents deferrable content that is held within BAML as a stream.

DeferrableContentConverter

将流转换为 DeferrableContent 实例。Converts a stream to a DeferrableContent instance.

DependencyObject

表示一个参与依赖项属性系统的对象。Represents an object that participates in the dependency property system.

DependencyObjectType

为所有 DependencyObject 派生类型实现基础类型缓存。Implements an underlying type cache for all DependencyObject derived types.

DependencyProperty

表示可通过诸如样式、数据绑定、动画和继承等方法设置的属性。Represents a property that can be set through methods such as, styling, data binding, animation, and inheritance.

DependencyPropertyHelper

提供一种帮助程序方法 (GetValueSource(DependencyObject, DependencyProperty)),此方法可报告依赖属性的有效值的属性系统源。Provides a single helper method (GetValueSource(DependencyObject, DependencyProperty)) that reports the property system source for the effective value of a dependency property.

DependencyPropertyKey

提供依赖项对象标识符,以便对只读依赖项对象进行有限的写访问。Provides a dependency property identifier for limited write access to a read-only dependency property.

DialogResultConverter

DialogResult 属性(Nullable<T> 类型的 Boolean 值)与其他类型之间相互转换。Converts the DialogResult property, which is a Nullable<T> value of type Boolean, to and from other types.

DpiChangedEventArgs

在窗口移动到具有不同 DPI 的监视器或当前监视器的 DPI 发生更改等情况下,此类会将必要的信息传递到 DpiChangedEvent 事件的任何侦听器。This class passes necessary information to any listener of the DpiChangedEvent event, such as when a window is moved to a monitor with different DPI, or the DPI of the current monitor changes.

DragDrop

提供用于启动拖放操作的帮助器方法和字段(包括开始拖放操作的方法),并提供用于添加和移除拖放相关事件处理程序的工具。Provides helper methods and fields for initiating drag-and-drop operations, including a method to begin a drag-and-drop operation, and facilities for adding and removing drag-and-drop related event handlers.

DragEventArgs

包含与所有拖放事件(DragEnterDragLeaveDragOverDrop)相关的参数。Contains arguments relevant to all drag-and-drop events (DragEnter, DragLeave, DragOver, and Drop).

DurationConverter

Duration 的实例与其他类型表示形式之间进行转换。Converts instances of Duration to and from other type representations.

DynamicResourceExtension

实现一个标记扩展,该标记扩展支持从 XAML 中进行的动态资源引用。Implements a markup extension that supports dynamic resource references made from XAML.

DynamicResourceExtensionConverter

从分析的 XAML 转换为 DynamicResourceExtension,并支持从 XAML 中进行动态资源引用。Converts from parsed XAML to DynamicResourceExtension and supports dynamic resource references made from XAML.

EventManager

提供事件相关的实用工具方法,这些方法可为类所有者注册路由事件,并添加类处理程序。Provides event-related utility methods that register routed events for class owners and add class handlers.

EventPrivateKey

为处理程序被存储到内部哈希表中的事件提供唯一标识。Provides unique identification for events whose handlers are stored into an internal hashtable.

EventRoute

表示路由事件将遵循的路由的容器。Represents the container for the route to be followed by a routed event.

EventSetter

以某种样式表示事件资源库。Represents an event setter in a style. 事件资源库可调用指定的事件处理程序来响应事件。Event setters invoke the specified event handlers in response to events.

EventTrigger

表示一个触发器,该触发器应用一组操作以响应一个事件。Represents a trigger that applies a set of actions in response to an event.

ExceptionRoutedEventArgs

ImageMediaElement 失败的事件提供数据。Provides data for the Image and MediaElement failed events.

ExitEventArgs

Exit 事件的事件参数。Event arguments for the Exit event.

Expression

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

ExpressionConverter

Expression 的实例和其他类型之间来回转换。Converts instances of Expression to and from other types.

FigureLengthConverter

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

FontSizeConverter

在字体大小值和其他类型表示形式之间进行转换。Converts font size values to and from other type representations.

FontStretchConverter

FontStretch 的实例与其他类型表示形式之间进行转换。Converts instances of FontStretch to and from other type representations.

FontStretches

提供一组静态预定义 FontStretch 值。Provides a set of static predefined FontStretch values.

FontStyleConverter

FontStyle 实例与其他数据类型之间进行转换。Converts instances of FontStyle to and from other data types.

FontStyles

提供一组静态预定义 FontStyle 值。Provides a set of static predefined FontStyle values.

FontWeightConverter

FontWeight 实例与其他数据类型之间进行转换。Converts instances of FontWeight to and from other data types.

FontWeights

提供一组静态预定义 FontWeight 值。Provides a set of static predefined FontWeight values.

FrameworkCompatibilityPreferences

包含指定应用程序相对于位于 PresentationFramework 程序集中的 WPF 功能的行为方式的属性。Contains properties that specify how an application should behave relative to WPF features that are in the PresentationFramework assembly.

FrameworkContentElement

FrameworkContentElementContentElement 基类的 WPF 框架级别的实现和扩展。FrameworkContentElement is the WPF framework-level implementation and expansion of the ContentElement base class. FrameworkContentElement 增加了针对下列各项的支持:附加输入 API(包括工具提示和上下文菜单)、演示图板、用于数据绑定的数据上下文、格式支持和逻辑树帮助程序 API。FrameworkContentElement adds support for additional input APIs (including tooltips and context menus), storyboards, data context for data binding, styles support, and logical tree helper APIs.

FrameworkElement

提供 Windows Presentation Foundation (WPF) 元素的属性、事件和方法的 WPF 框架级别集。Provides a WPF framework-level set of properties, events, and methods for Windows Presentation Foundation (WPF) elements. 此类表示所提供的 WPF 框架级别实现基于 UIElement 定义的 WPF 核心级别 API。This class represents the provided WPF framework-level implementation that is built on the WPF core-level APIs that are defined by UIElement.

FrameworkElementFactory

支持模板创建。Supports the creation of templates.

FrameworkPropertyMetadata

为依赖属性报告或应用元数据(从而专门添加特定于框架的属性系统特征)。Reports or applies metadata for a dependency property, specifically adding framework-specific property system characteristics.

FrameworkTemplate

可以实例化 FrameworkElement 和/或 FrameworkContentElement 对象的树。Enables the instantiation of a tree of FrameworkElement and/or FrameworkContentElement objects.

Freezable

定义具有可修改状态和只读(冻结)状态的对象。Defines an object that has a modifiable state and a read-only (frozen) state. Freezable 派生的类提供详细更改通知,可以设置为不可变,并且可以克隆自身。Classes that derive from Freezable provide detailed change notification, can be made immutable, and can clone themselves.

FreezableCollection<T>

表示 DependencyObjectFreezableAnimatable 对象的集合。Represents a collection of DependencyObject, Freezable, or Animatable objects. FreezableCollection<T> 本身是 Animatable 类型。FreezableCollection<T> is itself an Animatable type.

GiveFeedbackEventArgs

包含 GiveFeedback 事件的参数。Contains arguments for the GiveFeedback event.

GridLengthConverter

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

HierarchicalDataTemplate

表示支持 HeaderedItemsControlDataTemplate,例如 TreeViewItemMenuItemRepresents a DataTemplate that supports HeaderedItemsControl, such as TreeViewItem or MenuItem.

HwndDpiChangedEventArgs

表示与 DpiChanged 事件相关的 HandledEventArgs 类型。Represents a type of HandledEventArgs that is relevant to a DpiChanged event.

Int32RectConverter

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

KeySplineConverter

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

KeyTimeConverter

KeyTime 的实例和其他类型之间来回转换。Converts instances of KeyTime to and from other types.

LengthConverter

在表示对象长度的 Double 的实例与其他类型的实例之间相互转换。Converts instances of other types to and from instances of a Double that represent an object's length.

LocalizabilityAttribute

为二进制 XAML (BAML) 类或类成员指定本地化特性。Specifies the localization attributes for a binary XAML (BAML) class or class member.

Localization

Localization 类为本地化特性和注释定义附加属性。The Localization class defines attached properties for localization attributes and comments.

LogicalTreeHelper

提供用于查询逻辑树中的对象的静态帮助器方法。Provides static helper methods for querying objects in the logical tree.

LostFocusEventManager

提供 WeakEventManager 实现,以便使用“弱事件侦听器”模式连接 LostFocusLostFocus 事件的侦听器。Provides a WeakEventManager implementation so that you can use the "weak event listener" pattern to attach listeners for the LostFocus or LostFocus events.

MediaScriptCommandRoutedEventArgs

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

MessageBox

显示消息框。Displays a message box.

MultiDataTrigger

表示一个触发器,它会在绑定数据满足一组条件时应用属性值或执行操作。Represents a trigger that applies property values or performs actions when the bound data meet a set of conditions.

MultiTrigger

表示在满足一组条件时应用属性值或执行操作的触发器。Represents a trigger that applies property values or performs actions when a set of conditions are satisfied.

NameScope

实现对 INameScope 方法的基本 WPF 支持,这些方法用于向特定 XAML 名称范围中存储名称-对象映射或检索此类映射。Implements base WPF support for the INameScope methods that store or retrieve name-object mappings into a particular XAML namescope. 添加附加属性支持,以便更简单地在元素级别动态获取或设置 XAML 名称范围的名称。Adds attached property support to make it simpler to get or set XAML namescope names dynamically at the element level.

NullableBoolConverter

Nullable<T> 类型之间进行转换(对泛型使用 Boolean 类型约束)。Converts to and from the Nullable<T> type (using the Boolean type constraint on the generic).

PointConverter

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

PresentationSource

提供将其他技术的内容呈现为互操作方案的一部分的抽象基类。Provides an abstract base for classes that present content from another technology as part of an interoperation scenario. 此外,此类还提供用于处理这些源的静态方法,以及基本可视层表示体系结构。In addition, this class provides static methods for working with these sources, as well as the basic visual-layer presentation architecture.

PropertyMetadata

定义依赖属性在应用于特定类型(包括该属性向其注册的条件)时行为的某些方面。Defines certain behavior aspects of a dependency property as it is applied to a specific type, including conditions it was registered with.

PropertyPath

实现一个数据结构,用于将某个属性描述为另一个属性或所属类型下的路径。Implements a data structure for describing a property as a path below another property, or below an owning type. 属性路径用在对象的数据绑定中,并用在动画的演示图板和时间线中。Property paths are used in data binding to objects, and in storyboards and timelines for animations.

PropertyPathConverter

提供 PropertyPath 对象的类型转换器。Provides a type converter for PropertyPath objects.

QueryContinueDragEventArgs

包含 QueryContinueDrag 事件的参数。Contains arguments for the QueryContinueDrag event.

RectConverter

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

RequestBringIntoViewEventArgs

RequestBringIntoView 路由事件提供数据。Provides data for the RequestBringIntoView routed event.

ResourceDictionary

提供一个哈希表/字典实现,其中包含组件所使用的 WPF 资源以及 WPF 应用程序的其他元素。Provides a hash table / dictionary implementation that contains WPF resources used by components and other elements of a WPF application.

ResourceKey

为各种资源键提供抽象基类。Provides an abstract base class for various resource keys.

ResourceReferenceKeyNotFoundException

在分析或序列化标记扩展资源过程中找不到资源引用键时引发的异常。The exception that is thrown when a resource reference key cannot be found during parsing or serialization of markup extension resources.

RoutedEvent

表示和标识路由事件,并声明其特征。Represents and identifies a routed event and declares its characteristics.

RoutedEventArgs

包含与路由事件相关联的状态信息和事件数据。Contains state information and event data associated with a routed event.

RoutedPropertyChangedEventArgs<T>

提供有关依赖属性值更改的数据(由特定的路由事件报告),其中包含发生更改的属性的旧值和新值。Provides data about a change in value to a dependency property as reported by particular routed events, including the previous and current value of the property that changed.

SessionEndingCancelEventArgs

包含 SessionEnding 事件的事件参数。Contains the event arguments for the SessionEnding event.

Setter

表示应用属性值的 setter。Represents a setter that applies a property value.

SetterBase

表示值 Setter 的基类。Represents the base class for value setters.

SetterBaseCollection

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

SizeChangedEventArgs

提供与 SizeChanged 事件相关的数据。Provides data related to the SizeChanged event.

SizeChangedInfo

报告有关 Size 的值更改的细节。Report the specifics of a value change involving a Size. 这用作 OnRenderSizeChanged(SizeChangedInfo) 重写中的参数。This is used as a parameter in OnRenderSizeChanged(SizeChangedInfo) overrides.

SizeConverter

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

SourceChangedEventArgs

为 SourceChanged 事件提供用于互操作的数据。Provides data for the SourceChanged event, used for interoperation. 此类不能被继承。This class cannot be inherited.

SplashScreen

为 Windows Presentation Foundation (WPF) 应用程序提供启动屏幕。Provides a startup screen for a Windows Presentation Foundation (WPF) application.

StartupEventArgs

包含 Startup 事件的参数。Contains the arguments for the Startup event.

StaticResourceExtension

实现一个标记扩展,该标记扩展支持根据 XAML 制作的静态(XAML 加载时)资源引用。Implements a markup extension that supports static (XAML load time) resource references made from XAML.

StrokeCollectionConverter

StrokeCollection 转换为字符串。Converts a StrokeCollection to a string.

Style

在类型的不同实例之间共享属性、资源和事件处理程序。Enables the sharing of properties, resources, and event handlers between instances of a type.

StyleTypedPropertyAttribute

表示一个特性,它应用于类定义并确定类型为 TargetType 的属性的 StyleRepresents an attribute that is applied to the class definition and determines the TargetTypes of the properties that are of type Style.

SystemColors

包含与系统显示元素对应的系统颜色、系统画笔和系统资源键。Contains system colors, system brushes, and system resource keys that correspond to system display elements.

SystemCommands

定义对于窗口管理常见的路由命令。Defines routed commands that are common to window management.

SystemFonts

包含公开有关字体的系统资源的属性。Contains properties that expose the system resources that concern fonts.

SystemParameters

包含可用来查询系统设置的属性。Contains properties that you can use to query system settings.

TemplateBindingExpression

描述 TemplateBindingExtension 的运行时实例。Describes a run-time instance of a TemplateBindingExtension.

TemplateBindingExpressionConverter

一个类型转换器,用于在序列化过程中依据 TemplateBindingExpression 实例构造标记扩展。A type converter that is used to construct a markup extension from a TemplateBindingExpression instance during serialization.

TemplateBindingExtension

实现一个标记扩展,该标记扩展支持在模板中属性的值和模板化控件上某个其他公开的属性的值之间进行绑定。Implements a markup extension that supports the binding between the value of a property in a template and the value of some other exposed property on the templated control.

TemplateBindingExtensionConverter

一个类型转换器,用于在序列化过程中依据实例构造 TemplateBindingExtensionA type converter that is used to construct a TemplateBindingExtension from an instance during serialization.

TemplateContent

实现录制和播放逻辑,模板在与 XAML 读取器和编写器交互时将使用该逻辑推迟内容。Implements the record and playback logic that templates use for deferring content when they interact with XAML readers and writers.

TemplateContentLoader

实现 XamlDeferringLoader,以便延迟加载在 WPF XAML 中为模板定义的 XAML 内容。Implements XamlDeferringLoader in order to defer loading of the XAML content that is defined for a template in WPF XAML.

TemplateKey

用作数据模板的资源键时,允许数据模板参与查找过程。When used as a resource key for a data template, allows the data template to participate in the lookup process.

TemplatePartAttribute

表示一个特性,该特性应用于类定义以标识用于模板化的已命名部件的类型。Represents an attribute that is applied to the class definition to identify the types of the named parts that are used for templating.

TemplateVisualStateAttribute

指定控件可处于特定状态,并且 VisualState 应该位于该控件的 ControlTemplate 中。Specifies that a control can be in a certain state and that a VisualState is expected in the control's ControlTemplate.

TextDecoration

表示一个文本修饰,它是可添加到文本的视觉装饰(如下划线)。Represents a text decoration, which a visual ornamentation that is added to text (such as an underline).

TextDecorationCollection

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

TextDecorationCollectionConverter

从其他数据类型转换 TextDecorationCollection 的实例。Converts instances of TextDecorationCollection from other data types.

TextDecorations

提供一组静态预定义文本修饰。Provides a set of static predefined text decorations.

ThemeDictionaryExtension

实现允许应用程序作者根据当前系统主题自定义控件样式的标记扩展。Implements a markup extension that enables application authors to customize control styles based on the current system theme.

ThemeInfoAttribute

指定主题字典在程序集中的存储位置。Specifies the location in which theme dictionaries are stored for an assembly.

ThicknessConverter

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

Trigger

表示一个触发器,它按条件应用属性值或执行操作。Represents a trigger that applies property values or performs actions conditionally.

TriggerAction

描述要为触发器执行的操作。Describes an action to perform for a trigger.

TriggerActionCollection

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

TriggerBase

表示用于在 Style 对象内指定条件值的基类。Represents the base class for specifying a conditional value within a Style object.

TriggerCollection

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

UIElement

UIElement 是 WPF 核心级实现的基类,这些实现是在 Windows Presentation Foundation (WPF) 元素和基本表示特性上生成的。UIElement is a base class for WPF core level implementations building on Windows Presentation Foundation (WPF) elements and basic presentation characteristics.

UIElement3D

UIElement3D 是 WPF 核心级实现的基类,这些实现是在 Windows Presentation Foundation (WPF) 元素和基本表示特性上生成的。UIElement3D is a base class for WPF core level implementations building on Windows Presentation Foundation (WPF) elements and basic presentation characteristics.

UIPropertyMetadata

为在核心级别具有呈现/用户界面影响的非框架属性提供属性元数据。Provides property metadata for non-framework properties that do have rendering/user interface impact at the core level.

VectorConverter

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

VisualState

表示特定状态下控件的可视外观。Represents the visual appearance of the control when it is in a specific state.

VisualStateChangedEventArgs

提供有关 CurrentStateChangingCurrentStateChanged 事件的数据。Provides data for the CurrentStateChanging and CurrentStateChanged events.

VisualStateGroup

包含互斥的 VisualState 对象和用于从一种状态转移到另一种状态的 VisualTransition 对象。Contains mutually exclusive VisualState objects and VisualTransition objects that are used to move from one state to another.

VisualStateManager

管理控件的状态以及用于状态过渡的逻辑。Manages states and the logic for transitioning between states for controls.

VisualTransition

表示当控件从一个状态转换到另一个状态时发生的可视行为。Represents the visual behavior that occurs when a control transitions from one state to another.

WeakEventManager

为在“弱事件模式”中使用的事件管理器提供基类。Provides a base class for the event manager that is used in the weak event pattern. 管理器为也使用该模式的事件(或回调)添加和移除侦听器。The manager adds and removes listeners for events (or callbacks) that also use the pattern.

WeakEventManager.ListenerList

提供用于存储 WeakEventManager 的侦听器的内置集合列表。Provides a built-in collection list for storing listeners for a WeakEventManager.

WeakEventManager<TEventSource,TEventArgs>

提供类型安全的 WeakEventManager,其可让您指定要用于弱事件监听程序模式的事件处理程序。Provides a type-safe WeakEventManager that enables you to specify the event handler to use for the "weak event listener" pattern. 此类定义事件源的类型参数和使用的事件数据的类型参数。This class defines a type parameter for the source of the event and a type parameter for the event data that is used.

WeakEventManager.ListenerList<TEventArgs>

提供用于存储 WeakEventManager 的侦听器的类型安全集合列表。Provides a type-safe collection list for storing listeners for a WeakEventManager. 这种用于定义使用的事件数据的类型参数。This class defines a type parameter for the event data that is used.

Window

提供创建、配置、显示和管理窗口和对话框的生存期的能力。Provides the ability to create, configure, show, and manage the lifetime of windows and dialog boxes.

WindowCollection

表示 Window 对象集合。Represents a collection of Window objects. 此类不能被继承。This class cannot be inherited.

结构

CornerRadius

表示矩形的角的半径。Represents the radii of a rectangle's corners.

DependencyPropertyChangedEventArgs

提供各种属性更改事件的数据。Provides data for various property changed events. 通常这些事件对只读依赖属性的值中的有效值更改进行报告。Typically these events report effective value changes in the value of a read-only dependency property. 另一种用法是作为 PropertyChangedCallback 实现的一部分。Another usage is as part of a PropertyChangedCallback implementation.

DpiScale

存储从中呈现 VisualUIElement 的 DPI 信息。Stores DPI information from which a Visual or UIElement is rendered.

Duration

表示 Timeline 处于活动状态的持续时间。Represents the duration of time that a Timeline is active.

FigureLength

描述 Figure 的高度或宽度。Describes the height or width of a Figure.

FontStretch

描述与某个字体与该字体的正常纵横比相比的拉伸程度。Describes the degree to which a font has been stretched compared to the normal aspect ratio of that font.

FontStyle

定义表示常规、斜体或倾斜字体样式的结构。Defines a structure that represents the style of a font face as normal, italic, or oblique.

FontWeight

以笔画的粗细来引用字体的密度。Refers to the density of a typeface, in terms of the lightness or heaviness of the strokes.

FreezableCollection<T>.Enumerator

枚举 FreezableCollection<T> 的成员。Enumerates the members of a FreezableCollection<T>.

GridLength

表示显式支持 Star 单位类型的元素长度。Represents the length of elements that explicitly support Star unit types.

Int32Rect

描述整数矩形的宽度、高度和位置。Describes the width, height, and location of an integer rectangle.

LocalValueEntry

表示本地设置的依赖属性的属性标识符和属性值。Represents a property identifier and the property value for a locally set dependency property.

LocalValueEnumerator

DependencyObject 上存在的任何依赖属性的本地值提供枚举支持。Provides enumeration support for the local values of any dependency properties that exist on a DependencyObject.

Point

表示二维空间中的 x 坐标和 y 坐标对。Represents an x- and y-coordinate pair in two-dimensional space.

Rect

描述矩形的宽度、高度和位置。Describes the width, height, and location of a rectangle.

RoutedEventHandlerInfo

提供特殊的处理信息以通知事件侦听器是否应该调用特定的处理程序。Provides special handling information to inform event listeners whether specific handlers should be invoked.

Size

实现一个结构,该结构用于描述对象的 SizeImplements a structure that is used to describe the Size of an object.

TextDecorationCollection.Enumerator

枚举 TextDecoration 中的 TextDecoration 项。Enumerates TextDecoration items in a TextDecoration.

Thickness

描述矩形边框的粗细。Describes the thickness of a frame around a rectangle. 四个 Double 值分别描述矩形的 LeftTopRightBottom 边。Four Double values describe the Left, Top, Right, and Bottom sides of the rectangle, respectively.

ValueSource

报告从 GetValueSource(DependencyObject, DependencyProperty) 返回的信息。Reports the information returned from GetValueSource(DependencyObject, DependencyProperty).

Vector

表示二维空间中的位移。Represents a displacement in 2-D space.

接口

IContentHost

此接口由承载 ContentElement 的布局实现。This interface is implemented by layouts which host ContentElement.

IDataObject

为传送数据提供与格式无关的机制。Provides a format-independent mechanism for transferring data.

IFrameworkInputElement

声明框架元素的名称范围协定。Declares a namescope contract for framework elements.

IInputElement

为 Windows Presentation Foundation (WPF) 元素进行的基本输入处理建立公共事件,以及事件相关属性和方法。Establishes the common events and also the event-related properties and methods for basic input processing by Windows Presentation Foundation (WPF) elements.

IWeakEventListener

为希望通过 WeakEvent 模式和 WeakEventManager 接收事件的类提供事件侦听支持。Provides event listening support for classes that expect to receive events through the WeakEvent pattern and a WeakEventManager.

枚举

BaseCompatibilityPreferences.HandleDispatcherRequestProcessingFailureOptions

提供一组值,用于描述调度程序如何响应请求处理时遇到的失败。Provides a set of values that describes how the dispatcher responds to failures that are encountered while requesting processing.

BaselineAlignment

描述如何相对于已确定的文本基线在垂直轴上为基于文本的元素定位基线。Describes how the baseline for a text-based element is positioned on the vertical axis, relative to the established baseline for text.

BaseValueSource

标识特定依赖属性值的属性系统源。Identifies the property system source of a particular dependency property value.

ColumnSpaceDistribution

描述如何在分列式流内容中分配空间。Describes how to distribute space in columnated flow content.

DragAction

指定拖放操作应如何继续以及是否应继续。Specifies how and if a drag-and-drop operation should continue.

DragDropEffects

指定拖放操作的效果。Specifies the effects of a drag-and-drop operation.

DragDropKeyStates

指定修改键(Shift、Ctrl 和 Alt)的当前状态,以及鼠标按钮的状态。Specifies the current state of the modifier keys (SHIFT, CTRL, and ALT), as well as the state of the mouse buttons.

FigureHorizontalAnchor

描述图形在水平方向的位置引用。Describes a position reference for a figure in a horizontal direction.

FigureUnitType

描述与 FigureLength 的宽度或高度关联的单位类型。Describes the unit type associated with the width or height of a FigureLength.

FigureVerticalAnchor

描述图形在垂直方向的引用点。Describes the point of reference of a figure in the vertical direction.

FlowDirection

定义一些常量,指定文本和用户界面 (UI) 元素的内容流动方向。Defines constants that specify the content flow direction for text and user interface (UI) elements.

FontCapitals

描述 Typography 对象的大写字母样式。Describes the capital letter style for a Typography object.

FontEastAsianLanguage

为用户提供一种机制,以便为指定的东亚书写体系或语言选择特定于字体的标志符号版本。Provides a mechanism for the user to select font-specific versions of glyphs for a specified East Asian writing system or language.

FontEastAsianWidths

为用户提供一种机制,以便选择宽度样式不同的标志符号。Provides a mechanism for the user to select glyphs of different width styles.

FontFraction

描述 Typography 对象的分数样式。Describes the fraction style for a Typography object.

FontNumeralAlignment

描述 Typography 对象的数字对齐方式。Describes the numeral alignment for a Typography object.

FontNumeralStyle

描述 Typography 对象的数字样式。Describes the numeral style for a Typography object.

FontVariants

呈现不同的版式标志符号形式。Renders variant typographic glyph forms.

FrameworkPropertyMetadataOptions

指定框架级属性行为中与 Windows Presentation Foundation (WPF) 属性系统中的特定依赖属性相关的类型。Specifies the types of framework-level property behavior that pertain to a particular dependency property in the Windows Presentation Foundation (WPF) property system.

GridUnitType

描述 GridLength 对象具有的值的种类。Describes the kind of value that a GridLength object is holding.

HorizontalAlignment

指示应在哪里将元素显示在与父元素的已分配布局槽相对的水平轴上。Indicates where an element should be displayed on the horizontal axis relative to the allocated layout slot of the parent element.

InheritanceBehavior

指示属性值继承、资源查找和 RelativeSource FindAncestor 查找的当前查找模式。 当绑定使用将其 Mode 属性设置为 FindAncestor 值的 RelativeSource 时,将会发生 RelativeSource FindAncestor 查找。A RelativeSource FindAncestor lookup occurs when a binding uses a RelativeSource that has its Mode property set to the FindAncestor value.

LineBreakCondition

围绕内联对象描述换行条件。Describes the breaking condition around an inline object.

LineStackingStrategy

描述一种机制,将根据该机制来为每一行确定行框。Describes a mechanism by which a line box is determined for each line.

LocalizationCategory

为二进制 XAML (BAML) 类或类成员指定 LocalizabilityAttribute 的类别值。Specifies the category value of a LocalizabilityAttribute for a binary XAML (BAML) class or class member.

MessageBoxButton

指定显示在消息框上的按钮。 用作 Show 方法的参数。Used as an argument of the Show method.

MessageBoxImage

指定消息框所显示的图标。Specifies the icon that is displayed by a message box.

MessageBoxOptions

为消息框指定特殊显示选项。Specifies special display options for a message box.

MessageBoxResult

指定用户单击的消息框按钮。 MessageBoxResultShow 方法返回。MessageBoxResult is returned by the Show method.

Modifiability

为二进制 XAML (BAML) 类或类成员指定 LocalizabilityAttribute 的可修改性值。Specifies the modifiability value of a LocalizabilityAttribute for a binary XAML (BAML) class or class member.

PowerLineStatus

指示系统电源是否处于联机状态,或指示系统电源状态未知。Indicates whether the system power is online, or that the system power status is unknown.

Readability

为二进制 XAML (BAML) 类或类成员指定 LocalizabilityAttribute 的可读性值。Specifies the readability value of a LocalizabilityAttribute for a binary XAML (BAML) class or class member.

ReasonSessionEnding

指定用户会话正在结束的原因。 ReasonSessionEnding 属性使用。Used by the ReasonSessionEnding property.

ResizeMode

指定是否可以调整窗口大小,并在可调整大小的情况下指定如何调整窗口大小。 ResizeMode 属性使用。Used by the ResizeMode property.

ResourceDictionaryLocation

指定主题资源字典所在的位置。Specifies the locations where theme resource dictionaries are located.

RoutingStrategy

指示路由事件的路由策略。Indicates the routing strategy of a routed event.

ShutdownMode

指定应用程序将如何关闭。 ShutdownMode 属性使用。Used by the ShutdownMode property.

SizeToContent

指定窗口将如何自动调整自身大小以适合其内容大小。 SizeToContent 属性使用。Used by the SizeToContent property.

TemplateKey.TemplateType

描述使用 TemplateKey 的不同类型的模板。Describes the different types of templates that use TemplateKey.

TextAlignment

指定对象中的文本是左对齐、右对齐、居中还是两端对齐。Specifies whether the text in the object is left-aligned, right-aligned, centered, or justified.

TextDataFormat

指定文本数据的数据格式。Specifies the data format of the text data.

TextDecorationLocation

指定 TextDecoration 对象的垂直位置。Specifies the vertical position of a TextDecoration object.

TextDecorationUnit

指定 TextDecorationPenOffsetPen 粗细值的单位类型。Specifies the unit type of either a TextDecorationPenOffset or a Pen thickness value.

TextMarkerStyle

描述列表项的项目符号样式的外观。Describes the appearance of a list item's bullet style.

TextTrimming

描述当文本溢出其包含框的边缘时如何修整文本。Describes how text is trimmed when it overflows the edge of its containing box.

TextWrapping

指定文本在到达包含框的边缘时是否换行Specifies whether text wraps when it reaches the edge of the containing box

VerticalAlignment

描述如何在父级布局槽内垂直地定位或拉伸子元素。Describes how a child element is vertically positioned or stretched within a parent's layout slot.

Visibility

指定元素的显示状态。Specifies the display state of an element.

WindowStartupLocation

指定第一次打开 Window 时所要显示到的位置。 WindowStartupLocation 属性使用。Used by the WindowStartupLocation property.

WindowState

指定是最小化、最大化还是还原窗口。 WindowState 属性使用。Used by the WindowState property.

WindowStyle

指定 Window 所具有的边框类型。 WindowStyle 属性使用。Used by the WindowStyle property.

WrapDirection

指定内容可以环绕对象的允许方向。Specifies the allowable directions that content can wrap around an object.

委托

AutoResizedEventHandler

表示将处理 HwndSource 所引发的 AutoResized 事件的方法。Represents the method that will handle the AutoResized event raised by HwndSource.

CoerceValueCallback

为只要重新计算依赖项属性值或专门请求强制转换时就调用的方法提供一个模板。Provides a template for a method that is called whenever a dependency property value is being re-evaluated, or coercion is specifically requested.

DataObjectCopyingEventHandler

表示将处理 Copying 附加事件的方法。Represents a method that will handle the Copying attached event.

DataObjectPastingEventHandler

表示将处理 Pasting 附加事件的方法。Represents a method that will handle the Pasting attached event.

DataObjectSettingDataEventHandler

表示将处理 SettingData 附加事件的方法。Represents a method that will handle the SettingData attached event.

DependencyPropertyChangedEventHandler

表示将处理某些事件的方法,这些事件在特定的 DependencyProperty 实现上的 DependencyObject 发生更改时引发。Represents the method that will handle events raised when a DependencyProperty is changed on a particular DependencyObject implementation.

DpiChangedEventHandler

表示将处理 DpiChangedEventArgs 的方法。Represents a method that will handle DpiChangedEventArgs.

DragEventHandler

表示将处理拖放路由事件的方法,例如 DragEnterRepresents a method that will handle drag-and-drop routed events, for example DragEnter.

ExitEventHandler

表示 Exit 事件的处理方法。Represents the method that handles the Exit event.

GiveFeedbackEventHandler

表示一种方法,该方法将处理进程内拖放操作中的反馈路由事件,例如 GiveFeedbackRepresents a method that will handle the feedback routed event from in-process drag-and-drop operations, for instance GiveFeedback.

HwndDpiChangedEventHandler

用于接收 DPI 更改通知的处理程序的委托。The delegate to use for handlers that receive DPI change notification.

PropertyChangedCallback

表示在依赖属性的有效属性值更改时调用的回调。Represents the callback that is invoked when the effective property value of a dependency property changes.

QueryContinueDragEventHandler

表示一个将处理路由事件的方法,拖动源(例如 QueryContinueDrag)可以利用该方法取消拖放事件。Represents a method that will handle the routed events that enables a drag-and-drop operation to be canceled by the drag source, for example QueryContinueDrag.

RequestBringIntoViewEventHandler

表示将处理 RequestBringIntoView 路由事件的方法。Represents the method that will handle the RequestBringIntoView routed event.

RoutedEventHandler

表示将处理各种路由事件的方法,这些路由事件不包含除所有路由事件共有数据之外的其他特定事件数据。Represents the method that will handle various routed events that do not have specific event data beyond the data that is common for all routed events.

RoutedPropertyChangedEventHandler<T>

表示将处理跟踪属性值更改的各个路由事件的方法。Represents methods that will handle various routed events that track property value changes.

SessionEndingCancelEventHandler

表示 SessionEnding 事件的处理方法。Represents the method that handles the SessionEnding event.

SizeChangedEventHandler

表示将处理 SizeChanged 路由事件的方法。Represents the method that will handle the SizeChanged routed event.

SourceChangedEventHandler

表示将对特定侦听器元素处理“SourceChanged”事件的方法。Represents the method that will handle the "SourceChanged" event on specific listener elements.

StartupEventHandler

表示 Startup 事件的处理方法。Represents the method that handles the Startup event.

ValidateValueCallback

表示用作验证依赖属性有效值的回调的方法。Represents a method used as a callback that validates the effective value of a dependency property.