Edit

Bagikan melalui


BindingOperations Class

Definition

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
Inheritance
BindingOperations

Remarks

This class exposes a set of static methods that serve as helper operations for data bindings.

Properties

DisconnectedSource

Gets an object that replaces the DataContext when an item container is removed from the visual tree.

Methods

AccessCollection(IEnumerable, Action, Boolean)

Provides access to a collection by using the synchronization mechanism that the application specified when it called EnableCollectionSynchronization.

ClearAllBindings(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, CollectionSynchronizationCallback)

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.

EnableCollectionSynchronization(IEnumerable, Object)

Enables a CollectionView object to participate in synchronized access to a collection used on multiple threads by using a simple locking mechanism.

GetBinding(DependencyObject, DependencyProperty)

Retrieves the Binding object that is set on the specified property.

GetBindingBase(DependencyObject, DependencyProperty)

Retrieves the BindingBase object that is set on the specified property.

GetBindingExpression(DependencyObject, DependencyProperty)

Returns the BindingExpression object associated with the specified binding target property on the specified object.

GetBindingExpressionBase(DependencyObject, DependencyProperty)

Retrieves the BindingExpressionBase object that is set on the specified property.

GetMultiBinding(DependencyObject, DependencyProperty)

Retrieves the MultiBinding object that is set on the specified property.

GetMultiBindingExpression(DependencyObject, DependencyProperty)

Returns the MultiBindingExpression object associated with the specified binding target property on the specified object.

GetPriorityBinding(DependencyObject, DependencyProperty)

Retrieves the PriorityBinding object that is set on the specified property.

GetPriorityBindingExpression(DependencyObject, DependencyProperty)

Returns the PriorityBindingExpression object associated with the specified binding target property on the specified object.

GetSourceUpdatingBindingGroups(DependencyObject)

Gets all BindingGroup objects that have invalid values or target values have not been updated the source.

GetSourceUpdatingBindings(DependencyObject)

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)

Creates and associates a new instance of BindingExpressionBase with the specified binding target property.

Events

CollectionRegistering

Occurs when the data-binding system notices a collection.

CollectionViewRegistering

Occurs when the data-binding system notices a collection view.

Applies to