public override void Layout(ViewLayoutContext context)
{
// Prevent reentrancy
if (!_layingOut)
{
_layingOut = true;
// Update the calculated values used during layout calls
_ribbon.CalculatedValues.Recalculate();
// Let base class perform standard layout actions
base.Layout(context);
_layingOut = false;
}
}