(X) Hide this
    • Login
    • Join
      • Generate New Image
        By clicking 'Register' you accept the terms of use .

Tip: How to round the edges of a rectangle?

(1 votes)
Martin Mihaylov
>
Martin Mihaylov
Joined Oct 29, 2007
Articles:   50
Comments:   70
More Articles
2 comments   /   posted on Sep 05, 2008
Categories:   General , Design

If you want your rectangle to have rounded edges, you can use the RadiusX and RadiusY properties of the Rectangle control.

Xaml

<Rectangle x:Name="MyRect" Width="100" Height="100" RadiusX="10" RadiusY="10" Fill="Red" />

RadiusX determines the radius of the corners on the x-axis and RadiusY determines the radius of the corners on the y-axis.

That's it!


Subscribe

Comments

  • -_-

    RE: Tip: How to round the edges of a rectangle?


    posted by Anonymous on Oct 20, 2009 02:28
    Awesome... thanks very helpful
  • -_-

    RE: Tip: How to round the edges of a rectangle?


    posted by aj on Feb 17, 2010 17:12
    thanks.

Add Comment

Login to comment:
  *      *