Event DrawingContent
Raised when the View's content is to be drawn.
public event EventHandler<DrawEventArgs>? DrawingContent
Returns
- EventHandler<DrawEventArgs>
- Raised when the View's content is to be drawn.
Remarks
Subscribe to this event to draw custom content for the View. Use the drawing methods available on View such as AddRune(int, int, Rune), AddStr(string), and FillRect(Rectangle, Rune).
The event is invoked after ClearingViewport and Text have been drawn, but after SubViews have been drawn.
Transparency Support: If the View has ViewportSettings with Transparent set, use the DrawContext to report which areas were actually drawn. This enables proper transparency by excluding only the drawn areas from the clip region. See DrawContext for details on reporting drawn regions.
The NewViewport property provides the view-relative rectangle describing the currently visible viewport into the View.