mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
16 lines
731 B
C#
16 lines
731 B
C#
namespace Terminal.Gui;
|
|
|
|
/// <summary>Args for events that relate to specific <see cref="View"/></summary>
|
|
public class ViewEventArgs : EventArgs
|
|
{
|
|
/// <summary>Creates a new instance of the <see cref="Terminal.Gui.ViewEventArgs"/> class.</summary>
|
|
/// <param name="view">The view that the event is about.</param>
|
|
public ViewEventArgs (View view) { View = view; }
|
|
|
|
/// <summary>The view that the event is about.</summary>
|
|
/// <remarks>
|
|
/// Can be different from the sender of the <see cref="EventHandler"/> for example if event describes the adding a
|
|
/// child then sender may be the parent while <see cref="View"/> is the child being added.
|
|
/// </remarks>
|
|
public View View { get; }
|
|
} |