Interface IBindingTarget
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
Methods
Bind(IBinding)
Adds a binding to this object. Binding should have this object as a target.
void Bind(IBinding binding)
Parameters
bindingIBindingBinding instance to add.
Unbind(IBinding)
Removes a binding from this object. This also will dispose the binding.
bool Unbind(IBinding binding)
Parameters
bindingIBindingBinding instance to remove.
Returns
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
Returns
- int
Count of removed bindings.