Click here to Skip to main content
15,881,455 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I facing one issue with corner radius in border. I apply corner radius as 11 & borderthickness as 1.
But background colour is visible in border corner (i.e, some space is there between background colour & Borderbrush)

XML
<Grid x:Name="LayoutRoot" Background="Black">
    <Border Width="93" Height="30" Background="#FFF7E8A0" BorderBrush="#FFF3EFEF" BorderThickness="1" CornerRadius="11" UseLayoutRounding="True" ScrollViewer.VerticalScrollBarVisibility="Hidden" ScrollViewer.HorizontalScrollBarVisibility="Hidden" SnapsToDevicePixels="True" ClipToBounds="True" />
</Grid>



Please help me on this issue.

Regards
Ranjith
Posted
Updated 13-Jul-11 17:50pm
v2
Comments
Pete O'Hanlon 13-Jul-11 5:47am    
Could you post a zoomed up screen shot and your XAML for me to look at? Plus, what OS is this running on?
KiranBabu M 13-Jul-11 6:01am    
can u provide the xaml code of ur solution.
Mark Salsbery 13-Jul-11 18:14pm    
Yes, seeing your XAML would be helpful! This seems to work fine for me...

<Border Background="Orange" BorderBrush="Black" BorderThickness="1" CornerRadius="11" Width="100" Height="100" />

1 solution

I guess it may be a shadow effect of the control.
Can you please check it?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900