// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Text; using System.Windows; namespace Microsoft.Management.UI.Internal { /// /// Routed event args which provide the ability to attach an /// arbitrary peice of data. /// /// There are no restrictions on type T. [SuppressMessage("Microsoft.MSInternal", "CA903:InternalNamespaceShouldNotContainPublicTypes")] public class DataRoutedEventArgs : RoutedEventArgs { private T data; /// /// Constructs a new instance of the DataRoutedEventArgs class. /// /// The data payload to be stored. /// The routed event. public DataRoutedEventArgs(T data, RoutedEvent routedEvent) { this.data = data; this.RoutedEvent = routedEvent; } /// /// Gets a value containing the data being stored. /// public T Data { get { return this.data; } } } }