Class IndexerDescriptor
Holds a description of a binding for AvaloniaObject's [] operator.
public class IndexerDescriptor : IObservable<object?>, IDescription
- Inheritance
-
IndexerDescriptor
- Implements
- Inherited Members
- Extension Methods
Constructors
IndexerDescriptor()
public IndexerDescriptor()
Properties
Description
Gets a description of the binding.
public string Description { get; }
Property Value
Mode
Gets or sets the binding mode.
public BindingMode Mode { get; set; }
Property Value
Priority
Gets or sets the binding priority.
public BindingPriority Priority { get; set; }
Property Value
Property
Gets or sets the source property.
public AvaloniaProperty? Property { get; set; }
Property Value
Source
Gets or sets the source object.
public AvaloniaObject? Source { get; set; }
Property Value
SourceObservable
Gets or sets the source observable.
public IObservable<object>? SourceObservable { get; set; }
Property Value
Remarks
Methods
Subscribe(IObserver<object?>)
public IDisposable Subscribe(IObserver<object?> observer)
Parameters
Returns
WithMode(BindingMode)
Modifies the binding mode.
public IndexerDescriptor WithMode(BindingMode mode)
Parameters
mode
BindingModeThe binding mode.
Returns
- IndexerDescriptor
The object that the method was called on.
WithPriority(BindingPriority)
Modifies the binding priority.
public IndexerDescriptor WithPriority(BindingPriority priority)
Parameters
priority
BindingPriorityThe binding priority.
Returns
- IndexerDescriptor
The object that the method was called on.
Operators
operator !(IndexerDescriptor)
Makes a two-way binding.
public static IndexerDescriptor operator !(IndexerDescriptor binding)
Parameters
binding
IndexerDescriptorThe current binding.
Returns
- IndexerDescriptor
A two-way binding.
operator ~(IndexerDescriptor)
Makes a two-way binding.
public static IndexerDescriptor operator ~(IndexerDescriptor binding)
Parameters
binding
IndexerDescriptorThe current binding.
Returns
- IndexerDescriptor
A two-way binding.