You don't need a custom control, just put your container in a border element:
<Border BorderBrush="#FF000000" BorderThickness="1" CornerRadius="8">
<Grid/>
</Border>
You can replace the <Grid/>
with any of the layout containers...
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…