public override void Layout(ViewLayoutContext context) { Debug.Assert(context != null); // Use all of the provided space // Always use the metric and ignore given space ClientRectangle = context.DisplayRectangle; }