public Layout ( |
||
context | Layout context. | |
Результат | void |
public override void Layout(ViewLayoutContext context)
{
Debug.Assert(context != null);
// Get the sizing metric
int length = _paletteMetric.GetMetricInt(ElementState, _metricInt);
// Always use the metric and ignore given space
ClientRectangle = new Rectangle(context.DisplayRectangle.Location, new Size(length, length));
}