AdornedElementPlaceholder::MeasureOverride Method (Size)
.NET Framework (current version)
Determines the size of the AdornedElementPlaceholder object.
Assembly: PresentationFramework (in PresentationFramework.dll)
Parameters
- constraint
-
Type:
System.Windows::Size
An upper limit value that the return value should not exceed.
| Exception | Condition |
|---|---|
| InvalidOperationException | The AdornedElementPlaceholder object is not part of a template. |
This method measures only the first visual child object. The returned value is also based on the size of the element for which this AdornedElementPlaceholder is a placeholder for.
.NET Framework
Available since 3.0
Available since 3.0
Show: