Draw a Non-rectangular object in WPF
By [)ia6l0 iii
WPF lets you create non-rectangular shapes. We can use the RadiusX and the RadiusY attributes to make the edges non-rectangular in a Rectangle.
See the markup below:
<Rectangle Width=""50"" Height=""50""
Fill=""Red"" Stroke=""Green"" RadiusX=""12""
RadiusY=""12"" />
The RadiusX and the RadiusY attributes make the edges curved
Draw a Non-rectangular object in WPF (342 Views)