ItemRoutedEventArgs<T> Class
Provides event arguments for an item-related routed event.
public class ItemRoutedEventArgs<T> : RoutedEventArgs
- Type Parameters:
-
T
-The type of the item.
- Inheritance:
- object EventArgs RoutedEventArgs object
- Derived:
- ContextMenuItemRoutedEventArgs DependencyObjectItemRoutedEventArgs ObjectItemRoutedEventArgs
Constructors
ItemRoutedEventArgs(T)
Initializes a new instance of the ItemRoutedEventArgs
class.
public ItemRoutedEventArgs(T item)
Parameter | Type | Description |
---|---|---|
item | T | The item that is the focus of this event. |
ItemRoutedEventArgs(T, RoutedEvent)
Initializes a new instance of the ItemRoutedEventArgs
class.
public ItemRoutedEventArgs(T item, RoutedEvent routedEvent)
Parameter | Type | Description |
---|---|---|
item | T | The item that is the focus of this event. |
routedEvent | RoutedEvent | The routed event identifier for this event arguments instance. |
ItemRoutedEventArgs(T, RoutedEvent, object)
Initializes a new instance of the ItemRoutedEventArgs
class.
public ItemRoutedEventArgs(T item, RoutedEvent routedEvent, object source)
Parameter | Type | Description |
---|---|---|
item | T | The item that is the focus of this event. |
routedEvent | RoutedEvent | The routed event identifier for this event arguments instance. |
source | object | An alternate source that will be reported when the event is handled. |
Properties
Item
Gets or sets the item that is the focus of this event.
public T Item { get; set; }
Property Value
- T:
The item that is the focus of this event.