DrawingContext.DrawRoundedRectangle Method (Brush, Pen, Rect, Double, Double)
Assembly: PresentationCore (in PresentationCore.dll)
public abstract void DrawRoundedRectangle( Brush brush, Pen pen, Rect rectangle, double radiusX, double radiusY )
The brush used to fill the rectangle.
The pen used to stroke the rectangle.
The rectangle to draw.
The radius in the X dimension of the rounded corners. This value will be clamped to the range of 0 to Width/2.
The brush and the pen can both be null. If the brush is null, then no fill is performed. If the pen is null, then no stoke is performed. If both the pen and the brush are null, then the drawing is not visible.
Available since 3.0