Method AddDrawnRegion
AddDrawnRegion(Region)
Reports that a region has been drawn.
public void AddDrawnRegion(Region region)
Parameters
regionRegionThe region that was drawn, in screen-relative coordinates.
Remarks
This method is useful for reporting non-rectangular drawn areas, which is important for proper transparency support with Transparent.
When called from within OnDrawingContent(DrawContext?), ensure the region is in screen-relative coordinates by using ViewportToScreen(in Rectangle) to convert each rectangle in the region.