SelectionChanged Event

Definition

Assembly Avalonia.Controls.TreeDataGrid.dll

Occurs when the selection changes due to items being selected/deselected, or selected items being removed from the source.

event EventHandler<TreeSelectionModelSelectionChangedEventArgs>? SelectionChanged

Returns

Remarks

Note that due to limitations of the INotifyCollectionChanged feature in the .NET BCL, this event will not be raised when a System.Collections.Specialized.NotifyCollectionChangedAction.Reset signal is retreived due to e.g. calling Clear() on an System.Collections.ObjectModel.ObservableCollection`1. For this reason it is advised that all subscriptions to SelectionChanged are paired with a subscription to SourceReset. ///