Table of Contents

Class IndexerDescriptor

Namespace
Avalonia.Data
Assembly
Avalonia.Base.dll

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

string

Mode

Gets or sets the binding mode.

public BindingMode Mode { get; set; }

Property Value

BindingMode

Priority

Gets or sets the binding priority.

public BindingPriority Priority { get; set; }

Property Value

BindingPriority

Property

Gets or sets the source property.

public AvaloniaProperty? Property { get; set; }

Property Value

AvaloniaProperty

Source

Gets or sets the source object.

public AvaloniaObject? Source { get; set; }

Property Value

AvaloniaObject

SourceObservable

Gets or sets the source observable.

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

Property Value

IObservable<object>

Remarks

If null, then Source.Property will be used.

Methods

Subscribe(IObserver<object?>)

public IDisposable Subscribe(IObserver<object?> observer)

Parameters

observer IObserver<object>

Returns

IDisposable

WithMode(BindingMode)

Modifies the binding mode.

public IndexerDescriptor WithMode(BindingMode mode)

Parameters

mode BindingMode

The 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 BindingPriority

The 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 IndexerDescriptor

The current binding.

Returns

IndexerDescriptor

A two-way binding.

operator ~(IndexerDescriptor)

Makes a two-way binding.

public static IndexerDescriptor operator ~(IndexerDescriptor binding)

Parameters

binding IndexerDescriptor

The current binding.

Returns

IndexerDescriptor

A two-way binding.