public override void Layout(ViewLayoutContext context)
{
Debug.Assert(context != null);
// We take on all the available display area
ClientRectangle = context.DisplayRectangle;
// Update the title element with the height of the group title area
_viewNormalTitle.Height = _ribbon.CalculatedValues.GroupTitleHeight;
// We only show the dialog box launcher button if group says we need one
_viewNormalDialog.Visible = _ribbonGroup.DialogBoxLauncher;
// Let contained content element be layed out
base.Layout(context);
// Put back the original display value now we have finished
context.DisplayRectangle = ClientRectangle;
}