Table of Contents

Event DrawComplete

Namespace
Terminal.Gui.ViewBase
Assembly
Terminal.Gui.dll

Raised when the View has completed drawing and is about to update the clip region.

public event EventHandler<DrawEventArgs>? DrawComplete

Returns

EventHandler<DrawEventArgs>
Raised when the View has completed drawing and is about to update the clip region.

Remarks

This event is raised at the very end of Draw(DrawContext?), after all drawing operations have completed but before the view's area is excluded from Clip.

The DrawContext property provides information about what regions were drawn by this view and its subviews. This is particularly useful for views with Transparent enabled, as it shows exactly which areas will be excluded from the clip.

Use this event to:

  • Perform any final drawing operations
  • Inspect what was drawn
  • Track drawing statistics or metrics

Note: This event fires after OnDrawComplete(DrawContext?). If you need to override the behavior, prefer overriding the virtual method in a subclass rather than subscribing to this event.