public override Size GetPreferredSize(ViewLayoutContext context)
{
Size retSize = base.GetPreferredSize(context);
// Apply the padding around the child elements
retSize = CommonHelper.ApplyPadding(Orientation.Horizontal, retSize, PreferredPadding);
return retSize;
}