SelectionModel<T> Class

Namespace
Avalonia.Controls.Selection
Interfaces
Base Types
graph BT Type-->Base0["SelectionNodeBase<T>"] Base0-->Base1["object"] Type-.->Interface0["ICollectionChangedListener"] Type-.->Interface1["ISelectionModel"] click Interface1 "/api/Avalonia.Controls.Selection/ISelectionModel" Type-.->Interface2["INotifyPropertyChanged"] Type["SelectionModel<T>"] class Type type-node

Syntax

public class SelectionModel<T> : SelectionNodeBase<T>, ICollectionChangedListener, ISelectionModel, 
    INotifyPropertyChanged

Type Parameters

Name Description
T

Constructors

Events

Name Type Summary
IndexesChanged EventHandler<SelectionModelIndexesChangedEventArgs>?
LostSelection EventHandler?
PropertyChanged PropertyChangedEventHandler?
SelectionChanged EventHandler<SelectionModelSelectionChangedEventArgs<T>>?
SourceReset EventHandler?

Properties

Name Value Summary
AnchorIndex int
Count int
SelectedIndex int
SelectedIndexes IReadOnlyList<int>
SelectedItem T
SelectedItems IReadOnlyList<T>
SingleSelect bool
Source IEnumerable<T>?

Methods

Extension Methods

Name Value Summary
BatchUpdate() IDisposable