AdvanceFocusEventArgs.cs 640 B

123456789101112131415161718
  1. namespace Terminal.Gui;
  2. /// <summary>The event arguments for <see cref="View.AdvanceFocus"/> events.</summary>
  3. public class AdvanceFocusEventArgs : CancelEventArgs<bool>
  4. {
  5. /// <summary>Initializes a new instance.</summary>
  6. public AdvanceFocusEventArgs (NavigationDirection direction, TabBehavior? behavior)
  7. {
  8. Direction = direction;
  9. Behavior = behavior;
  10. }
  11. /// <summary>Gets or sets the view that is losing focus.</summary>
  12. public NavigationDirection Direction { get; set; }
  13. /// <summary>Gets or sets the view that is gaining focus.</summary>
  14. public TabBehavior? Behavior { get; set; }
  15. }