BindingOperations Класс
Определение
Предоставляет статические методы для работы с привязками, включая объекты Binding, MultiBinding и PriorityBinding.Provides static methods to manipulate bindings, including Binding, MultiBinding, and PriorityBinding objects.
public ref class BindingOperations abstract sealed
public static class BindingOperations
type BindingOperations = class
Public Class BindingOperations
- Наследование
-
BindingOperations
Комментарии
Этот класс предоставляет набор статических методов, которые служат вспомогательными операциями для привязок данных.This class exposes a set of static methods that serve as helper operations for data bindings.
Свойства
DisconnectedSource |
Получает объект, заменяющий DataContext при удалении контейнера элементов из визуального дерева.Gets an object that replaces the DataContext when an item container is removed from the visual tree. |
Методы
AccessCollection(IEnumerable, Action, Boolean) |
Предоставляет доступ к коллекции с помощью механизма синхронизации, заданного приложением при вызове EnableCollectionSynchronization.Provides access to a collection by using the synchronization mechanism that the application specified when it called EnableCollectionSynchronization. |
ClearAllBindings(DependencyObject) |
Удаляет все привязки, включая привязки типа Binding, MultiBinding и PriorityBinding, из указанного объекта DependencyObject.Removes all bindings, including bindings of type Binding, MultiBinding, and PriorityBinding, from the specified DependencyObject. |
ClearBinding(DependencyObject, DependencyProperty) |
Удаляет привязку из свойства, если она существует.Removes the binding from a property if there is one. |
DisableCollectionSynchronization(IEnumerable) |
Удаляет синхронизацию, зарегистрированную для указанной коллекции.Remove the synchronization registered for the specified collection. |
EnableCollectionSynchronization(IEnumerable, Object) |
Позволяет объекту CollectionView участвовать в синхронизированном доступе к коллекции, используемой в нескольких потоках, с помощью простого механизма блокировки.Enables a CollectionView object to participate in synchronized access to a collection used on multiple threads by using a simple locking mechanism. |
EnableCollectionSynchronization(IEnumerable, Object, CollectionSynchronizationCallback) |
Позволяет объекту CollectionView участвовать в синхронизированном доступе к коллекции, используемой в нескольких потоках, с помощью механизма, отличного от простой блокировки.Enables a CollectionView object to participate in synchronized access to a collection used on multiple threads by using a mechanism other than a simple lock. |
GetBinding(DependencyObject, DependencyProperty) |
Возвращает объект Binding, установленный на указанное свойство.Retrieves the Binding object that is set on the specified property. |
GetBindingBase(DependencyObject, DependencyProperty) |
Возвращает объект BindingBase, установленный на указанное свойство.Retrieves the BindingBase object that is set on the specified property. |
GetBindingExpression(DependencyObject, DependencyProperty) |
Возвращает объект BindingExpression, связанный с указанным свойством целевого объекта привязки заданного объекта.Returns the BindingExpression object associated with the specified binding target property on the specified object. |
GetBindingExpressionBase(DependencyObject, DependencyProperty) |
Возвращает объект BindingExpressionBase, установленный на указанное свойство.Retrieves the BindingExpressionBase object that is set on the specified property. |
GetMultiBinding(DependencyObject, DependencyProperty) |
Возвращает объект MultiBinding, установленный на указанное свойство.Retrieves the MultiBinding object that is set on the specified property. |
GetMultiBindingExpression(DependencyObject, DependencyProperty) |
Возвращает объект MultiBindingExpression, связанный с указанным свойством целевого объекта привязки заданного объекта.Returns the MultiBindingExpression object associated with the specified binding target property on the specified object. |
GetPriorityBinding(DependencyObject, DependencyProperty) |
Возвращает объект PriorityBinding, установленный на указанное свойство.Retrieves the PriorityBinding object that is set on the specified property. |
GetPriorityBindingExpression(DependencyObject, DependencyProperty) |
Возвращает объект PriorityBindingExpression, связанный с указанным свойством целевого объекта привязки заданного объекта.Returns the PriorityBindingExpression object associated with the specified binding target property on the specified object. |
GetSourceUpdatingBindingGroups(DependencyObject) |
Получает все объекты BindingGroup, которые содержат недопустимые значения или целевые значения и не прошедших обновление источника.Gets all BindingGroup objects that have invalid values or target values have not been updated the source. |
GetSourceUpdatingBindings(DependencyObject) |
Получает все объекты BindingExpressionBase, которые содержат недопустимые значения или целевые значения и не прошедших обновление источника.Gets all BindingExpressionBase objects that have invalid values or target values have not been updated the source. |
IsDataBound(DependencyObject, DependencyProperty) |
Возвращает значение, указывающее, является ли заданное свойство на текущий момент привязанным к данным.Returns a value that indicates whether the specified property is currently data-bound. |
SetBinding(DependencyObject, DependencyProperty, BindingBase) |
Создает экземпляр BindingExpressionBase и связывает его с заданным свойством целевого объекта привязки.Creates and associates a new instance of BindingExpressionBase with the specified binding target property. |
События
CollectionRegistering |
Возникает, когда система привязки данных замечает коллекцию.Occurs when the data-binding system notices a collection. |
CollectionViewRegistering |
Возникает, когда система привязки данных замечает представление коллекции.Occurs when the data-binding system notices a collection view. |