DrawingContextExtensions Class
Provides extension methods for the type DrawingContext.
public static class DrawingContextExtensions
- Inheritance:
- Object Object
Methods
DrawRoundedRectangle(DrawingContext, Brush, Pen, Rect, CornerRadius)
public static void DrawRoundedRectangle(this DrawingContext drawingContext, Brush brush, Pen pen, Rect rectangle, CornerRadius cornerRadius)
Parameter | Type | Description |
---|---|---|
drawingContext | DrawingContext | The DrawingContext to use. |
brush | Brush | The brush used to fill the rectangle. |
pen | Pen | The pen used to stroke the rectangle. |
rectangle | Rect | The rectangle to draw. |
cornerRadius | CornerRadius | The CornerRadius for the rounded corners. |