protected override Size MeasureOverride(
A Border element determines its upper Size limit by analyzing the sizing properties, margin, and requested size of its child elements.
Supported in: 4.6, 4.5, 4, 3.5, 3.0
.NET Framework Client Profile
Supported in: 4, 3.5 SP1