InstancedBinding Class

Summary

Namespace
Avalonia.Data
Base Types
  • object
graph BT Type-->Base0["object"] Type["InstancedBinding"] class Type type-node

Syntax

public class 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(IAvaloniaObject, AvaloniaProperty, object, bool) on a target object.

Constructors

Name Summary
InstancedBinding(ISubject<object>, BindingMode, BindingPriority) Initializes a new instance of the InstancedBinding class.

Properties

Name Value Summary
Mode BindingMode
Gets the binding mode with which the binding was initiated.
Observable IObservable<object>
Gets the Value as an observable.
Priority BindingPriority
Gets the binding priority.
Subject ISubject<object>
Gets the Value as a subject.
Value object
Gets the value or source of the binding.

Methods

Name Value Summary
OneTime(IObservable<object>, BindingPriority) InstancedBinding
Creates a new one-time binding.
static
OneTime(object, BindingPriority) InstancedBinding
Creates a new one-time binding with a fixed value.
static
OneWay(IObservable<object>, BindingPriority) InstancedBinding
Creates a new one-way binding.
static
OneWayToSource(ISubject<object>, BindingPriority) InstancedBinding
Creates a new one-way to source binding.
static
TwoWay(ISubject<object>, BindingPriority) InstancedBinding
Creates a new two-way binding.
static
WithPriority(BindingPriority) InstancedBinding
Creates a copy of the InstancedBinding with a different priority.