Method AddDrawnRectangle
AddDrawnRectangle(Rectangle)
Reports that a rectangle has been drawn.
public void AddDrawnRectangle(Rectangle rect)
Parameters
rectRectangleThe rectangle that was drawn, in screen-relative coordinates.
Remarks
When called from within OnDrawingContent(DrawContext?), ensure the rectangle is in screen-relative coordinates by using ViewportToScreen(in Rectangle) or similar methods.