I have a custom control that sits inside a border, the border has a CornerRadius
and an inner shadow that should create a nice look. Inside that border is a custom Control but that control seems to ignore the border radius and makes it look square when the control is placed underneath a corner. How can I fix this?
<Border Background="#ccc" BorderBrush="Transparent" BorderThickness="1" ClipToBounds="True" CornerRadius="5">
<Border Background="Transparent" BorderBrush="Gray" ClipToBounds="True" CornerRadius="5" BorderThickness="1" Margin="0">
<Grid>
<Toolkit:CanvasControl HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<!-- more contents here -->
</Toolkit:CanvasControl>
</Grid>
</Border>
</Border>
The CanvasControl
is defined as so
public class CanvasControl : Panel
{
}