A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

38 lines
1.4 KiB

// Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System.Collections;
using Avalonia.Controls.Primitives;
using Avalonia.Interactivity;
namespace Avalonia.Controls
{
/// <summary>
/// Provides data for the <see cref="SelectingItemsControl.SelectionChanged"/> event.
/// </summary>
public class SelectionChangedEventArgs : RoutedEventArgs
{
/// <summary>
/// Initializes a new instance of the <see cref="SelectionChangedEventArgs"/> class.
/// </summary>
/// <param name="routedEvent">The event being raised.</param>
/// <param name="removedItems">The items removed from the selection.</param>
/// <param name="addedItems">The items added to the selection.</param>
public SelectionChangedEventArgs(RoutedEvent routedEvent, IList removedItems, IList addedItems)
: base(routedEvent)
{
RemovedItems = removedItems;
AddedItems = addedItems;
}
/// <summary>
/// Gets the items that were added to the selection.
/// </summary>
public IList AddedItems { get; }
/// <summary>
/// Gets the items that were removed from the selection.
/// </summary>
public IList RemovedItems { get; }
}
}