WPF lets you specify a negative value for the Border’s Margin. This way the available size for the children of the Border will not reduce when a Border is rendered.
<Border Margin='-1,-1,-1,-1' BorderThickness='1' BorderBrush='Black'>
<MyControls/>
</Border>
Share with