Layout rounding in action with two rectangles

<Grid x:Name="LayoutRoot" Background="White">
<Rectangle Margin="10.5"
UseLayoutRounding="True"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Fill="Transparent"
Stroke="Black" StrokeThickness="1"
Width="150" Height="30" />
<Rectangle Margin="20.5"
UseLayoutRounding="False"
Fill="Transparent"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Stroke="Black" StrokeThickness="1"
Width="150" Height="30" />
</Grid>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.