(X) Hide this Watch the recording of the latest SilverlightShow webcast 'Running Silverlight Outside the Browser and with Elevated Trust'.
Join our next live webinar session by Braulio Diez - Sketchflow in Real Scenarios, on Sept 29th, 8am - 9am PDT.
Learn More | Sign Up | More Webinars by SilverlightShow

Recommended

Skip Navigation LinksHome / Tips / View Tip

Tip: How to round the edges of a rectangle?

+ Add to SilverlightShow Favorites
2 comments   /   posted by Martin Mihaylov on Sep 05, 2008
(0 votes)
Categories: General , Controls and UI

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!

Share


Comments

Comments RSS RSS
  • 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

 
 

   
  
  
   
Please add 8 and 7 and type the answer here: