Share via


BindingBase Class

Definition

An abstract base class for all bindings providing BindingMode selection, fallback/target null values, and formatting support.

public ref class BindingBase abstract
public abstract class BindingBase
type BindingBase = class
Public MustInherit Class BindingBase
Inheritance
BindingBase
Derived

Remarks

This class underlies concrete binding implementations (e.g., Binding, MultiBinding) and supplies common features such as binding mode control, string formatting and thread-safe collection synchronization helpers.

Properties

FallbackValue

Gets or sets the value used when the binding cannot produce a source value (e.g. path not found, conversion failure).

Mode

Gets or sets the mode for this binding.

StringFormat

Gets or sets the string format applied to the bound value.

TargetNullValue

Gets or sets the value to use when the binding successfully resolves the source path and the resulting source value is null.

Methods

Create<TSource,TProperty>(Func<TSource,TProperty>, BindingMode, IValueConverter, Object, String, Object, Object, Object)

This factory method was added to simplify creating TypedBindingBase instances from lambda getters.

DisableCollectionSynchronization(IEnumerable)

Stops collection synchronization previously enabled for collection.

EnableCollectionSynchronization(IEnumerable, Object, CollectionSynchronizationCallback)

Enables synchronized (thread-safe) access to collection using the supplied callback.

ThrowIfApplied()

Throws InvalidOperationException if the binding has already been applied.

Applies to