MeasureOverride Method

MediaElement.MeasureOverride Method (Size)


Updates the DesiredSize of the MediaElement. This method is called by a parent UIElement. This is the first pass of layout.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

protected override Size MeasureOverride(
	Size availableSize


Type: System.Windows.Size

The upper limit the element should not exceed.

Return Value

Type: System.Windows.Size

The desired size.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft