Skip to main content

InstancedBinding Class

Holds the result of calling Initiate(AvaloniaObject, AvaloniaProperty, Object, Boolean).

Definition

Namespace: Avalonia.Data
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public sealed class InstancedBinding
View Source
InheritanceObject → InstancedBinding

Remarks

Whereas an IBinding holds a description of a binding such as "Bind to the X property on a control's DataContext"; this class represents a binding that has been instanced by calling Initiate(AvaloniaObject, AvaloniaProperty, Object, Boolean) on a target object.

Properties

ModeGets the binding mode with which the binding was initiated.
PriorityGets the binding priority.
SourceGets the binding source observable.

Methods

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
OneTime(IObservable(Object), BindingPriority)Creates a new one-time binding.
OneTime(Object, BindingPriority)Creates a new one-time binding with a fixed value.
OneWay(IObservable(Object), BindingPriority)Creates a new one-way binding.
OneWayToSource(IObserver(Object), BindingPriority)Creates a new one-way to source binding.
ToString()Returns a string that represents the current object.
(Inherited from Object)
TwoWay(IObservable(Object), IObserver(Object), BindingPriority)Creates a new two-way binding.
WithPriority(BindingPriority)Creates a copy of the InstancedBinding with a different priority.

See Also

Reference

Avalonia.Data Namespace