// Copyright (c) The Perspex 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 Perspex.Controls.Primitives;
using Perspex.Interactivity;
namespace Perspex.Controls
{
///
/// Provides data for the event.
///
public class SelectionChangedEventArgs : RoutedEventArgs
{
///
/// Initializes a new instance of the class.
///
/// The event being raised.
/// The items added to the selection.
/// The items removed from the selection.
public SelectionChangedEventArgs(RoutedEvent routedEvent, IList addedItems, IList removedItems)
: base(routedEvent)
{
AddedItems = addedItems;
RemovedItems = removedItems;
}
///
/// 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; }
}
}