using System.Collections; using Avalonia.Interactivity; namespace Ursa.Controls; public class SelectionChangingEventArgs: RoutedEventArgs { /// Gets the items that were added to the selection. public IList NewItems { get; } /// Gets the items that were removed from the selection. public IList OldItems { get; } /// /// Gets or sets a value indicating whether the selection can be changed. If set to false, the selection will not change. /// public bool CanSelect { get; set; } = true; public SelectionChangingEventArgs(RoutedEvent routedEvent, IList oldItems, IList newItems): base(routedEvent) { OldItems = oldItems; NewItems = newItems; } }