Table of Contents

Interface IBindingTarget

Namespace
Icy.Data.Bindings
Assembly
IcyUI.dll

An interface for objects that store and handle property bindings as target.

public interface IBindingTarget : INotifyPropertyChanged
Inherited Members
Extension Methods

Remarks

Your binding target doesn't have to implement this interface. However, if it implements IBindingTarget, binder knows that your object is prepared for bindings and can utilize them correctly.

Properties

Bindings

Gets all bindings set to this target.

IReadOnlyCollection<IBinding> Bindings { get; }

Property Value

IReadOnlyCollection<IBinding>

Methods

Bind(IBinding)

Adds a binding to this object. Binding should have this object as a target.

void Bind(IBinding binding)

Parameters

binding IBinding

Binding instance to add.

Unbind(IBinding)

Removes a binding from this object. This also will dispose the binding.

bool Unbind(IBinding binding)

Parameters

binding IBinding

Binding instance to remove.

Returns

bool

true if the bindings was removed successfully, false otherwise.

UnbindAll()

Removes all the related bindings from this object.

void UnbindAll()

UnbindWhere(Func<IBinding, bool>)

Removes all bindings that match the specified predicate.

int UnbindWhere(Func<IBinding, bool> predicate)

Parameters

predicate Func<IBinding, bool>

A predicate to select bindings for the removal.

Returns

int

Count of removed bindings.