ViewEventArgs.cs 731 B

12345678910111213141516
  1. namespace Terminal.Gui;
  2. /// <summary>Args for events that relate to specific <see cref="View"/></summary>
  3. public class ViewEventArgs : EventArgs
  4. {
  5. /// <summary>Creates a new instance of the <see cref="Terminal.Gui.ViewEventArgs"/> class.</summary>
  6. /// <param name="view">The view that the event is about.</param>
  7. public ViewEventArgs (View view) { View = view; }
  8. /// <summary>The view that the event is about.</summary>
  9. /// <remarks>
  10. /// Can be different from the sender of the <see cref="EventHandler"/> for example if event describes the adding a
  11. /// child then sender may be the parent while <see cref="View"/> is the child being added.
  12. /// </remarks>
  13. public View View { get; }
  14. }