BindingBase Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
|
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 |
| EnableCollectionSynchronization(IEnumerable, Object, CollectionSynchronizationCallback) |
Enables synchronized (thread-safe) access to |
| ThrowIfApplied() |
Throws InvalidOperationException if the binding has already been applied. |