public override void Layout(ViewLayoutContext context)
{
Debug.Assert(context != null);
Rectangle clientRect = context.DisplayRectangle;
ClientRectangle = clientRect;
// Remove QAT border for positioning children
context.DisplayRectangle = CommonHelper.ApplyPadding(Orientation.Horizontal, ClientRectangle, _borderPadding);
// Let children be layed out inside border area
base.Layout(context);
// Put back the original display value now we have finished
context.DisplayRectangle = ClientRectangle;
}