System.Windows.Data Namespace

包含用于将属性绑定到数据源、数据源提供程序类以及集合和视图的特定于数据的实现的类。 Contains classes used for binding properties to data sources, data source provider classes, and data-specific implementations of collections and views.

Classes

Binding

提供对绑定定义的高级访问,该绑定连接绑定目标对象(通常为 WPF 元素)的属性和任何数据源(例如数据库、XML 文件,或包含数据的任何对象)。Provides high-level access to the definition of a binding, which connects the properties of binding target objects (typically, WPF elements), and any data source (for example, a database, an XML file, or any object that contains data).

BindingBase

定义 BindingPriorityBindingMultiBinding 类的公共特性。Defines the common characteristics of the Binding, PriorityBinding, and MultiBinding classes.

BindingExpression

包含有关 Binding 的单个实例的信息。Contains information about a single instance of a Binding.

BindingExpressionBase

表示 BindingExpressionPriorityBindingExpressionMultiBindingExpression 的基类。Represents the base class for BindingExpression, PriorityBindingExpression, and MultiBindingExpression.

BindingGroup

包含绑定集合和用于验证对象的 ValidationRule 对象。Contains a collection of bindings and ValidationRule objects that are used to validate an object.

BindingListCollectionView

表示实现 IBindingList 的集合的 CollectionView,例如 Microsoft ActiveX 数据对象 (ADO) 数据视图。Represents the CollectionView for collections that implement IBindingList, such as Microsoft ActiveX Data Objects (ADO) data views.

BindingOperations

提供用于操作绑定的静态方法,包括 BindingMultiBindingPriorityBinding 对象。Provides static methods to manipulate bindings, including Binding, MultiBinding, and PriorityBinding objects.

CollectionContainer

保留现有的集合结构,如 ObservableCollection<T>DataSet,以在 CompositeCollection 中使用。Holds an existing collection structure, such as an ObservableCollection<T> or a DataSet, to be used inside a CompositeCollection.

CollectionRegisteringEventArgs

CollectionRegistering 事件提供数据。Provides data for the CollectionRegistering event.

CollectionView

表示用于对数据集合进行分组、排序、筛选和导航的视图。Represents a view for grouping, sorting, filtering, and navigating a data collection.

CollectionViewGroup

表示根据 GroupDescriptionsCollectionView 对象创建的组。Represents a group created by a CollectionView object based on the GroupDescriptions.

CollectionViewRegisteringEventArgs

CollectionViewRegistering 事件提供数据。Provides data for the CollectionViewRegistering event.

CollectionViewSource

CollectionView 类的 Extensible Application Markup Language (XAML) 代理。The Extensible Application Markup Language (XAML) proxy of a CollectionView class.

CompositeCollection

允许将多个集合和项作为一个列表显示。Enables multiple collections and items to be displayed as a single list.

DataChangedEventManager

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

DataSourceProvider

DataSourceProvider 对象的公共基类和协定,它们是执行某些查询以生成可以用作绑定源对象的单个对象或对象列表的工厂。Common base class and contract for DataSourceProvider objects, which are factories that execute some queries to produce a single object or a list of objects that you can use as binding source objects.

DataTransferEventArgs

封装数据传输事件的参数。Encapsulates arguments for data transfer events.

FilterEventArgs

提供与 Filter 事件关联的信息和事件数据。Provides information and event data that is associated with the Filter event.

ListCollectionView

表示实现 IList 的集合的集合视图。Represents the collection view for collections that implement IList.

MultiBinding

描述附加到单个绑定目标属性的 Binding 对象的集合。Describes a collection of Binding objects attached to a single binding target property.

MultiBindingExpression

包含有关 MultiBinding 的单个实例的实例信息。Contains instance information about a single instance of a MultiBinding.

ObjectDataProvider

包装和创建可以用作绑定源的对象。Wraps and creates an object that you can use as a binding source.

PriorityBinding

描述附加到单个绑定目标属性的 Binding 对象的集合,该属性从成功生成值的集合中的第一个绑定接收其值。Describes a collection of Binding objects that is attached to a single binding target property, which receives its value from the first binding in the collection that produces a value successfully.

PriorityBindingExpression

包含有关 PriorityBinding 的单个实例的实例信息。Contains instance information about a single instance of a PriorityBinding.

PropertyGroupDescription

描述使用属性名作为条件对项进行分组。Describes the grouping of items using a property name as the criteria.

RelativeSource

实现一个标记扩展,该扩展描述相对于绑定目标位置的绑定源位置。Implements a markup extension that describes the location of the binding source relative to the position of the binding target.

ValueConversionAttribute

表示允许值转换器的作者指定转换器的实现中涉及的数据类型的特性。Represents an attribute that allows the author of a value converter to specify the data types involved in the implementation of the converter.

ValueUnavailableException

当值不可用时由 GetValue(Object, String) 方法引发的异常。The exception that is thrown by the GetValue(Object, String) method when the value is not available.

XmlDataProvider

允许以声明方式访问数据绑定的 XML 数据。Enables declarative access to XML data for data binding.

XmlNamespaceMapping

声明统一资源标识符 (URI) 和前缀之间的映射。Declares a mapping between a uniform resource identifier (URI) and a prefix.

XmlNamespaceMappingCollection

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

Interfaces

IMultiValueConverter

提供在 MultiBinding 中应用自定义逻辑的方法。Provides a way to apply custom logic in a MultiBinding.

IValueConverter

提供将自定义逻辑应用于绑定的方法。Provides a way to apply custom logic to a binding.

Enums

BindingMode

描述绑定中数据流的方向。Describes the direction of the data flow in a binding.

BindingStatus

描述绑定的状态。Describes the status of a binding.

RelativeSourceMode

描述与绑定目标的位置相对的绑定源位置。Describes the location of the binding source relative to the position of the binding target.

UpdateSourceTrigger

描述绑定源更新的计时。Describes the timing of binding source updates.

Delegates

CollectionSynchronizationCallback

表示方法,其可同步跨线程访问的集合。Represent the method that synchronizes a collection for cross-thread access.

FilterEventHandler

表示将处理 Filter 事件的方法。Represents the method that will handle the Filter event.

GroupDescriptionSelectorCallback

表示用于提供自定义逻辑以根据父组及其级别选择 GroupDescription 的方法。Represents a method that is used to provide custom logic to select the GroupDescription based on the parent group and its level.

UpdateSourceExceptionFilterCallback

表示处理绑定源值更新过程中引发的异常的方法。Represents the method that handles exceptions that are thrown during the update of the binding source value. 它必须与 ExceptionValidationRule 一起使用。This must be used with the ExceptionValidationRule.