Recommended

Skip Navigation LinksHome / Search

Search

 
Results Per Page

Found 2 results for rectangle.
Date between: <not defined> and <not defined>
Search in: News , Articles , Tips , Shows , Showcase , Books

Order by Publish Date   Ascending Title   Rating  

  • 0 comments  /  posted by  Paul Yanez  on  Dec 13, 2009 (7 months ago)
    Tags: Rectangle , Slider , Tips
    In this tutorial Paul Yanez shows how to create a rounded corner on an object.

    In a previous tutorial Scaling Objects with a Slider control in Silverlight, the design of the slider control I wanted had a rounded edge. Programmatically you can set the RadiusX and RadiusY properties but I wanted to do this within Microsoft Blend design mode.



  • 2 comments  /  posted by  Martin Mihaylov  on  Sep 05, 2008 (more than a year ago)

    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!


Did you notice our new Silverlight-based Showcase section ? Check it out to get a bird's eye view of all showcases featured on SilverlightShow, with a quick thumbnail preview for easier browsing. Want to view the most recent showcases only? Use Group by Month option for a chronological listing.
This is the second redesigned, entirely Silverlight-based section in SilverlightShow, after the new Books section. We look forward to your feedback on both! (hide this)