NaturalVideoHeight Property

Gets the height of the video that is associated with the media.

XAML
Cannot be used in XAML.
Scripting
value = object.NaturalVideoHeight

Property Value

Double

The height of the video that is associated with the media, in pixels. Audio files will return 0.

This property is read-only. The default value is 0.

Remarks

The property value is not available until the MediaOpened event has been raised.

Applies To

MediaElement

See Also

Media Overview
Supported Media Formats and Protocols