4 changed files with 235 additions and 5 deletions
@ -0,0 +1,38 @@ |
|||
// 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 |
|||
{ |
|||
/// <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="addedItems">The items added to the selection.</param>
|
|||
/// <param name="removedItems">The items removed from the selection.</param>
|
|||
public SelectionChangedEventArgs(RoutedEvent routedEvent, IList addedItems, IList removedItems) |
|||
: base(routedEvent) |
|||
{ |
|||
AddedItems = addedItems; |
|||
RemovedItems = removedItems; |
|||
} |
|||
|
|||
/// <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; } |
|||
} |
|||
} |
|||
Loading…
Reference in new issue