using System.Collections;
using Avalonia.Interactivity;
namespace Ursa.Controls;
public class SelectionChangingEventArgs: RoutedEventArgs
{
/// Gets the items that were added to the selection.
public IList AddedItems { get; }
/// Gets the items that were removed from the selection.
public IList RemovedItems { 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 removedItems, IList addedItems): base(routedEvent)
{
RemovedItems = removedItems;
AddedItems = addedItems;
}
}