Image::MeasureOverride Method (Size)
.NET Framework (current version)
Updates the DesiredSize of the image. This method is called by the parent UIElement and is the first pass of layout.
Assembly: PresentationFramework (in PresentationFramework.dll)
Parameters
- constraint
-
Type:
System.Windows::Size
The size that the image should not exceed.
The image will always return its natural size, if it fits within the constraint. If not, it will return as large a size as it can.
.NET Framework
Available since 3.0
Available since 3.0
Show: