How to make upper (or lower) rounded rectangular corners in Silverlight?

Thus, the Rectangle control has the RadiusX and RadiusY properties to create rounded corners. However, this affects all angles, but I would like to know if there is a way to just work on the upper corners or the lower corners, etc. Is there any way?

+6
c # silverlight
source share
2 answers

Take a look at the CornerRadius Property :

<Grid Width="100" Height="100"> <Border BorderBrush="SlateBlue" BorderThickness="5,10,15,20" Background="Tomato" Padding="5" CornerRadius="5,10,15,20"> <Rectangle Fill="Yellow" /> </Border> </Grid> 
+12
source share

You can overlay two rectangles, one on top of the other. Set the RadiusX and RadiusY properties on the bottom rectangle, hold them together on the top rectangle, and then move them around a rounded top or bottom.

Make them the same color and it will look like one rectangle, only the top or bottom rounded.

+1
source share

All Articles