Skip to main content

IndexerDescriptor Class

Definition​

Namespace:Avalonia.Data
Assembly:Avalonia.Base
Package:Avalonia

Holds a description of a binding for Avalonia.AvaloniaObject's [] operator.

public class IndexerDescriptor

Inheritance: object -> IndexerDescriptor

Implements: IDescription, IObservable<object>

Constructors​

NameDescription
IndexerDescriptorNo summary available.

IndexerDescriptor Constructor​

public IndexerDescriptor()

Methods​

NameDescription
SubscribeNo summary available.
WithModeModifies the binding mode.
WithPriorityModifies the binding priority.

Subscribe Method​

public IDisposable Subscribe(IObserver<object> observer)

Parameters​

observer IObserver<object>

Returns​

IDisposable

WithMode Method​

Modifies the binding mode.

public Avalonia.Data.IndexerDescriptor WithMode(Avalonia.Data.BindingMode mode)

Parameters​

mode Avalonia.Data.BindingMode

The binding mode.

Returns​

Avalonia.Data.IndexerDescriptor

The object that the method was called on.

WithPriority Method​

Modifies the binding priority.

public Avalonia.Data.IndexerDescriptor WithPriority(Avalonia.Data.BindingPriority priority)

Parameters​

priority Avalonia.Data.BindingPriority

The binding priority.

Returns​

Avalonia.Data.IndexerDescriptor

The object that the method was called on.

Properties​

NameDescription
DescriptionGets a description of the binding.
ModeGets or sets the binding mode.
PriorityGets or sets the binding priority.
PropertyGets or sets the source property.
SourceGets or sets the source object.
SourceObservableGets or sets the source observable.

Description Property​

Gets a description of the binding.

public string Description { get; set; }

Mode Property​

Gets or sets the binding mode.

public Avalonia.Data.BindingMode Mode { get; set; }

Priority Property​

Gets or sets the binding priority.

public Avalonia.Data.BindingPriority Priority { get; set; }

Property Property​

Gets or sets the source property.

public Avalonia.AvaloniaProperty Property { get; set; }

Source Property​

Gets or sets the source object.

public Avalonia.AvaloniaObject Source { get; set; }

SourceObservable Property​

Gets or sets the source observable.

public IObservable<object> SourceObservable { get; set; }

Remarks​

If null, then Avalonia.Data.IndexerDescriptor.Source.Avalonia.Data.IndexerDescriptor.Property will be used.