Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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
© 2016 Microsoft