- Namespace
- Avalonia
.Controls .Selection - Interfaces
-
- I
Collection Changed Listener - ISelectionModel
- I
Notify Property Changed
- I
- Base Types
-
- object
- SelectionNodeBase
<T>
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
Name | Summary |
---|---|
SelectionModel |
|
SelectionModel |
Events
Name | Type | Summary |
---|---|---|
IndexesChanged | EventHandler |
|
LostSelection | EventHandler? | |
PropertyChanged | Property |
|
SelectionChanged | EventHandler |
|
SourceReset | EventHandler? |
Properties
Name | Value | Summary |
---|---|---|
AnchorIndex | int | |
Count | int | |
SelectedIndex | int | |
SelectedIndexes | IReadOnlyList |
|
SelectedItem | T | |
SelectedItems | IReadOnlyList |
|
SingleSelect | bool | |
Source | IEnumerable |
Methods
Name | Value | Summary |
---|---|---|
BatchUpdate |
SelectionModel |
|
BeginBatchUpdate |
void | |
Clear |
void | |
Deselect |
void | |
DeselectRange |
void | |
EndBatchUpdate |
void | |
IsSelected |
bool | |
On |
void | |
RaisePropertyChanged |
void | |
Select |
void | |
SelectAll |
void | |
SelectRange |
void |
Extension Methods
Name | Value | Summary |
---|---|---|
BatchUpdate |
IDisposable |