public GetPreferredSize ( |
||
context | Layout context. | |
return |
public override Size GetPreferredSize(ViewLayoutContext context)
{
Debug.Assert(context != null);
// Get the sizing metric
int length = _paletteMetric.GetMetricInt(ElementState, _metricInt);
// Use the same size for vertical and horizontal
return new Size(length, length);
}