Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
1535 lines (1431 sloc) 87.8 KB
<Type Name="MediaElement" FullName="System.Windows.Controls.MediaElement">
<TypeSignature Language="C#" Value="public class MediaElement : System.Windows.FrameworkElement, System.Windows.Markup.IUriContext" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi MediaElement extends System.Windows.FrameworkElement implements class System.Windows.Markup.IUriContext" />
<TypeSignature Language="DocId" Value="T:System.Windows.Controls.MediaElement" />
<TypeSignature Language="VB.NET" Value="Public Class MediaElement&#xA;Inherits FrameworkElement&#xA;Implements IUriContext" />
<TypeSignature Language="C++ CLI" Value="public ref class MediaElement : System::Windows::FrameworkElement, System::Windows::Markup::IUriContext" />
<TypeSignature Language="F#" Value="type MediaElement = class&#xA; inherit FrameworkElement&#xA; interface IUriContext" />
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Windows.FrameworkElement</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>System.Windows.Markup.IUriContext</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName>System.Windows.Localizability(System.Windows.LocalizationCategory.NeverLocalize)</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Represents a control that contains audio and/or video.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When distributing media with your application, you cannot use a media file as a project resource. In your project file, you must instead set the media type to `Content` and set `CopyToOutputDirectory` to `PreserveNewest` or `Always`.
<xref:System.Windows.Controls.MediaElement> can be used in two different modes, depending on what is driving the control: independent mode or clock mode. When used in the independent mode, the <xref:System.Windows.Controls.MediaElement> is analogous to an image, and <xref:System.Windows.Controls.MediaElement.Source%2A> [!INCLUDE[TLA2#tla_uri](~/includes/tla2sharptla-uri-md.md)] can be directly specified. In clock mode, the <xref:System.Windows.Controls.MediaElement> can be thought of as a target for an animation, and thus it will have corresponding <xref:System.Windows.Media.Animation.Timeline> and <xref:System.Windows.Media.Animation.Clock> entries in the timing tree. For more information on media modes, see the [Multimedia Overview](~/docs/framework/wpf/graphics-multimedia/multimedia-overview.md).
For an example of controlling a <xref:System.Windows.Controls.MediaElement> in independent mode, see [How to: Control a MediaElement (Play, Pause, Stop, Volume, and Speed)](~/docs/framework/wpf/graphics-multimedia/how-to-control-a-mediaelement-play-pause-stop-volume-and-speed.md).
Until the <xref:System.Windows.Controls.MediaElement.MediaOpened> event has been raised, the <xref:System.Windows.FrameworkElement.ActualWidth%2A> and <xref:System.Windows.FrameworkElement.ActualHeight%2A> of the control will report as zero as the media content is used to determine the final size and location of the control. For audio only content, these properties will always be zero.
For a fixed size control, the <xref:System.Windows.FrameworkElement.Width%2A> and/or <xref:System.Windows.FrameworkElement.Height%2A> properties can be set. However, to preserve the media's aspect ratio, set the <xref:System.Windows.FrameworkElement.Width%2A> or <xref:System.Windows.FrameworkElement.Height%2A> properties but not both.
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public MediaElement ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.MediaElement.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; MediaElement();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Instantiates a new instance of the <see cref="T:System.Windows.Controls.MediaElement" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ArrangeOverride">
<MemberSignature Language="C#" Value="protected override System.Windows.Size ArrangeOverride (System.Windows.Size finalSize);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance valuetype System.Windows.Size ArrangeOverride(valuetype System.Windows.Size finalSize) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.MediaElement.ArrangeOverride(System.Windows.Size)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function ArrangeOverride (finalSize As Size) As Size" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; override System::Windows::Size ArrangeOverride(System::Windows::Size finalSize);" />
<MemberSignature Language="F#" Value="override this.ArrangeOverride : System.Windows.Size -&gt; System.Windows.Size" Usage="mediaElement.ArrangeOverride finalSize" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Size</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="finalSize" Type="System.Windows.Size" />
</Parameters>
<Docs>
<param name="finalSize">Size used to arrange the control.</param>
<summary>Arranges and sizes a <see cref="T:System.Windows.Controls.MediaElement" /> control.</summary>
<returns>Size of the control.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Balance">
<MemberSignature Language="C#" Value="public double Balance { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance float64 Balance" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.Balance" />
<MemberSignature Language="VB.NET" Value="Public Property Balance As Double" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property double Balance { double get(); void set(double value); };" />
<MemberSignature Language="F#" Value="member this.Balance : double with get, set" Usage="System.Windows.Controls.MediaElement.Balance" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Double</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a ratio of volume across speakers.</summary>
<value>The ratio of volume across speakers in the range between -1 and 1. The default is 0.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
A value of -1 represents 100% of the left side speakers and 1 represents 100% of the right side speakers.
<a name="dependencyPropertyInfo_Balance"></a>
## Dependency Property Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.MediaElement.BalanceProperty>|
|Metadata properties set to `true`|None|
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="BalanceProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.DependencyProperty BalanceProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.DependencyProperty BalanceProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.MediaElement.BalanceProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly BalanceProperty As DependencyProperty " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::DependencyProperty ^ BalanceProperty;" />
<MemberSignature Language="F#" Value=" staticval mutable BalanceProperty : System.Windows.DependencyProperty" Usage="System.Windows.Controls.MediaElement.BalanceProperty" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.DependencyProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Controls.MediaElement.Balance" /> dependency property.</summary>
<remarks>To be added.</remarks>
<altmember cref="P:System.Windows.Controls.MediaElement.Balance" />
</Docs>
</Member>
<Member MemberName="BufferingEnded">
<MemberSignature Language="C#" Value="public event System.Windows.RoutedEventHandler BufferingEnded;" />
<MemberSignature Language="ILAsm" Value=".event class System.Windows.RoutedEventHandler BufferingEnded" />
<MemberSignature Language="DocId" Value="E:System.Windows.Controls.MediaElement.BufferingEnded" />
<MemberSignature Language="VB.NET" Value="Public Custom Event BufferingEnded As RoutedEventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event System::Windows::RoutedEventHandler ^ BufferingEnded;" />
<MemberSignature Language="F#" Value="member this.BufferingEnded : System.Windows.RoutedEventHandler " Usage="member this.BufferingEnded : System.Windows.RoutedEventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.RoutedEventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when media buffering has ended.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<a name="routedEventInfo_BufferingEnded"></a>
## Routed Event Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.MediaElement.BufferingEndedEvent>|
|Routing strategy|Bubbling|
|Delegate|<xref:System.Windows.RoutedEventHandler>|
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="BufferingEndedEvent">
<MemberSignature Language="C#" Value="public static readonly System.Windows.RoutedEvent BufferingEndedEvent;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.RoutedEvent BufferingEndedEvent" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.MediaElement.BufferingEndedEvent" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly BufferingEndedEvent As RoutedEvent " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::RoutedEvent ^ BufferingEndedEvent;" />
<MemberSignature Language="F#" Value=" staticval mutable BufferingEndedEvent : System.Windows.RoutedEvent" Usage="System.Windows.Controls.MediaElement.BufferingEndedEvent" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.RoutedEvent</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="E:System.Windows.Controls.MediaElement.BufferingEnded" /> routed event.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="BufferingProgress">
<MemberSignature Language="C#" Value="public double BufferingProgress { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance float64 BufferingProgress" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.BufferingProgress" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property BufferingProgress As Double" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property double BufferingProgress { double get(); };" />
<MemberSignature Language="F#" Value="member this.BufferingProgress : double" Usage="System.Windows.Controls.MediaElement.BufferingProgress" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Double</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value that indicates the percentage of buffering progress made.</summary>
<value>The percentage of buffering completed for streaming content. The value ranges from 0 to 1.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="BufferingStarted">
<MemberSignature Language="C#" Value="public event System.Windows.RoutedEventHandler BufferingStarted;" />
<MemberSignature Language="ILAsm" Value=".event class System.Windows.RoutedEventHandler BufferingStarted" />
<MemberSignature Language="DocId" Value="E:System.Windows.Controls.MediaElement.BufferingStarted" />
<MemberSignature Language="VB.NET" Value="Public Custom Event BufferingStarted As RoutedEventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event System::Windows::RoutedEventHandler ^ BufferingStarted;" />
<MemberSignature Language="F#" Value="member this.BufferingStarted : System.Windows.RoutedEventHandler " Usage="member this.BufferingStarted : System.Windows.RoutedEventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.RoutedEventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when media buffering has begun.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<a name="routedEventInfo_BufferingStarted"></a>
## Routed Event Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.MediaElement.BufferingStartedEvent>|
|Routing strategy|Bubbling|
|Delegate|<xref:System.Windows.RoutedEventHandler>|
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="BufferingStartedEvent">
<MemberSignature Language="C#" Value="public static readonly System.Windows.RoutedEvent BufferingStartedEvent;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.RoutedEvent BufferingStartedEvent" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.MediaElement.BufferingStartedEvent" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly BufferingStartedEvent As RoutedEvent " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::RoutedEvent ^ BufferingStartedEvent;" />
<MemberSignature Language="F#" Value=" staticval mutable BufferingStartedEvent : System.Windows.RoutedEvent" Usage="System.Windows.Controls.MediaElement.BufferingStartedEvent" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.RoutedEvent</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="E:System.Windows.Controls.MediaElement.BufferingStarted" /> routed event.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="CanPause">
<MemberSignature Language="C#" Value="public bool CanPause { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool CanPause" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.CanPause" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property CanPause As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool CanPause { bool get(); };" />
<MemberSignature Language="F#" Value="member this.CanPause : bool" Usage="System.Windows.Controls.MediaElement.CanPause" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value indicating whether the media can be paused.</summary>
<value>
<see langword="true" /> if the media can be paused; otherwise, <see langword="false" />.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Clock">
<MemberSignature Language="C#" Value="public System.Windows.Media.MediaClock Clock { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Windows.Media.MediaClock Clock" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.Clock" />
<MemberSignature Language="VB.NET" Value="Public Property Clock As MediaClock" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Windows::Media::MediaClock ^ Clock { System::Windows::Media::MediaClock ^ get(); void set(System::Windows::Media::MediaClock ^ value); };" />
<MemberSignature Language="F#" Value="member this.Clock : System.Windows.Media.MediaClock with get, set" Usage="System.Windows.Controls.MediaElement.Clock" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Media.MediaClock</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the clock associated with the <see cref="T:System.Windows.Media.MediaTimeline" /> that controls media playback.</summary>
<value>A clock associated with the <see cref="T:System.Windows.Media.MediaTimeline" /> that controls media playback. The default value is <see langword="null" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Setting this property puts the media element into a mode in which it utilizes the timing engine. Any media that was previously playing is stopped and the [!INCLUDE[TLA#tla_uri](~/includes/tlasharptla-uri-md.md)] associated with the new clock is opened.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Close">
<MemberSignature Language="C#" Value="public void Close ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Close() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.MediaElement.Close" />
<MemberSignature Language="VB.NET" Value="Public Sub Close ()" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; void Close();" />
<MemberSignature Language="F#" Value="member this.Close : unit -&gt; unit" Usage="mediaElement.Close " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Closes the media.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="DownloadProgress">
<MemberSignature Language="C#" Value="public double DownloadProgress { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance float64 DownloadProgress" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.DownloadProgress" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property DownloadProgress As Double" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property double DownloadProgress { double get(); };" />
<MemberSignature Language="F#" Value="member this.DownloadProgress : double" Usage="System.Windows.Controls.MediaElement.DownloadProgress" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Double</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a percentage value indicating the amount of download completed for content located on a remote server.</summary>
<value>A percentage value indicating the amount of download completed for content located on a remote server. The value ranges from 0 to 1. The default value is 0.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="HasAudio">
<MemberSignature Language="C#" Value="public bool HasAudio { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool HasAudio" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.HasAudio" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property HasAudio As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool HasAudio { bool get(); };" />
<MemberSignature Language="F#" Value="member this.HasAudio : bool" Usage="System.Windows.Controls.MediaElement.HasAudio" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value indicating whether the media has audio.</summary>
<value>
<see langword="true" /> if the media has audio; otherwise, <see langword="false" />.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="HasVideo">
<MemberSignature Language="C#" Value="public bool HasVideo { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool HasVideo" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.HasVideo" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property HasVideo As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool HasVideo { bool get(); };" />
<MemberSignature Language="F#" Value="member this.HasVideo : bool" Usage="System.Windows.Controls.MediaElement.HasVideo" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value indicating whether the media has video.</summary>
<value>
<see langword="true" /> if the media has video; otherwise, <see langword="false" />.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="IsBuffering">
<MemberSignature Language="C#" Value="public bool IsBuffering { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsBuffering" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.IsBuffering" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property IsBuffering As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool IsBuffering { bool get(); };" />
<MemberSignature Language="F#" Value="member this.IsBuffering : bool" Usage="System.Windows.Controls.MediaElement.IsBuffering" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Get a value indicating whether the media is buffering.</summary>
<value>
<see langword="true" /> if the media is buffering; otherwise, <see langword="false" />.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="IsMuted">
<MemberSignature Language="C#" Value="public bool IsMuted { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsMuted" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.IsMuted" />
<MemberSignature Language="VB.NET" Value="Public Property IsMuted As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool IsMuted { bool get(); void set(bool value); };" />
<MemberSignature Language="F#" Value="member this.IsMuted : bool with get, set" Usage="System.Windows.Controls.MediaElement.IsMuted" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether the audio is muted.</summary>
<value>
<see langword="true" /> if audio is muted; otherwise, <see langword="false" />. The default is <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<a name="dependencyPropertyInfo_IsMuted"></a>
## Dependency Property Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.MediaElement.IsMutedProperty>|
|Metadata properties set to `true`|None|
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="IsMutedProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.DependencyProperty IsMutedProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.DependencyProperty IsMutedProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.MediaElement.IsMutedProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly IsMutedProperty As DependencyProperty " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::DependencyProperty ^ IsMutedProperty;" />
<MemberSignature Language="F#" Value=" staticval mutable IsMutedProperty : System.Windows.DependencyProperty" Usage="System.Windows.Controls.MediaElement.IsMutedProperty" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.DependencyProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Controls.MediaElement.IsMuted" /> dependency property.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="LoadedBehavior">
<MemberSignature Language="C#" Value="public System.Windows.Controls.MediaState LoadedBehavior { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Controls.MediaState LoadedBehavior" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.LoadedBehavior" />
<MemberSignature Language="VB.NET" Value="Public Property LoadedBehavior As MediaState" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Windows::Controls::MediaState LoadedBehavior { System::Windows::Controls::MediaState get(); void set(System::Windows::Controls::MediaState value); };" />
<MemberSignature Language="F#" Value="member this.LoadedBehavior : System.Windows.Controls.MediaState with get, set" Usage="System.Windows.Controls.MediaElement.LoadedBehavior" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Controls.MediaState</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the load behavior <see cref="T:System.Windows.Controls.MediaState" /> for the media.</summary>
<value>The load behavior <see cref="T:System.Windows.Controls.MediaState" /> set for the media. The default value is <see cref="F:System.Windows.Controls.MediaState.Play" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<xref:System.Windows.Controls.MediaElement.LoadedBehavior%2A> must be set to <xref:System.Windows.Controls.MediaState.Manual> in order to interactively control media with the <xref:System.Windows.Controls.MediaElement.Play%2A>, <xref:System.Windows.Controls.MediaElement.Pause%2A>, and <xref:System.Windows.Controls.MediaElement.Stop%2A> methods.
<a name="dependencyPropertyInfo_LoadedBehavior"></a>
## Dependency Property Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.MediaElement.LoadedBehaviorProperty>|
|Metadata properties set to `true`|None|
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="LoadedBehaviorProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.DependencyProperty LoadedBehaviorProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.DependencyProperty LoadedBehaviorProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.MediaElement.LoadedBehaviorProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly LoadedBehaviorProperty As DependencyProperty " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::DependencyProperty ^ LoadedBehaviorProperty;" />
<MemberSignature Language="F#" Value=" staticval mutable LoadedBehaviorProperty : System.Windows.DependencyProperty" Usage="System.Windows.Controls.MediaElement.LoadedBehaviorProperty" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.DependencyProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Controls.MediaElement.LoadedBehavior" /> dependency property.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="MeasureOverride">
<MemberSignature Language="C#" Value="protected override System.Windows.Size MeasureOverride (System.Windows.Size availableSize);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance valuetype System.Windows.Size MeasureOverride(valuetype System.Windows.Size availableSize) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.MediaElement.MeasureOverride(System.Windows.Size)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function MeasureOverride (availableSize As Size) As Size" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; override System::Windows::Size MeasureOverride(System::Windows::Size availableSize);" />
<MemberSignature Language="F#" Value="override this.MeasureOverride : System.Windows.Size -&gt; System.Windows.Size" Usage="mediaElement.MeasureOverride availableSize" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Size</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="availableSize" Type="System.Windows.Size" />
</Parameters>
<Docs>
<param name="availableSize">The upper limit the element should not exceed.</param>
<summary>Updates the <see cref="P:System.Windows.UIElement.DesiredSize" /> of the <see cref="T:System.Windows.Controls.MediaElement" />. This method is called by a parent <see cref="T:System.Windows.UIElement" />. This is the first pass of layout.</summary>
<returns>The desired size.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="MediaEnded">
<MemberSignature Language="C#" Value="public event System.Windows.RoutedEventHandler MediaEnded;" />
<MemberSignature Language="ILAsm" Value=".event class System.Windows.RoutedEventHandler MediaEnded" />
<MemberSignature Language="DocId" Value="E:System.Windows.Controls.MediaElement.MediaEnded" />
<MemberSignature Language="VB.NET" Value="Public Custom Event MediaEnded As RoutedEventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event System::Windows::RoutedEventHandler ^ MediaEnded;" />
<MemberSignature Language="F#" Value="member this.MediaEnded : System.Windows.RoutedEventHandler " Usage="member this.MediaEnded : System.Windows.RoutedEventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.RoutedEventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when the media has ended.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<a name="routedEventInfo_MediaEnded"></a>
## Routed Event Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.MediaElement.MediaEndedEvent>|
|Routing strategy|Bubbling|
|Delegate|<xref:System.Windows.RoutedEventHandler>|
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="MediaEndedEvent">
<MemberSignature Language="C#" Value="public static readonly System.Windows.RoutedEvent MediaEndedEvent;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.RoutedEvent MediaEndedEvent" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.MediaElement.MediaEndedEvent" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly MediaEndedEvent As RoutedEvent " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::RoutedEvent ^ MediaEndedEvent;" />
<MemberSignature Language="F#" Value=" staticval mutable MediaEndedEvent : System.Windows.RoutedEvent" Usage="System.Windows.Controls.MediaElement.MediaEndedEvent" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.RoutedEvent</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="E:System.Windows.Controls.MediaElement.MediaEnded" /> routed event.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="MediaFailed">
<MemberSignature Language="C#" Value="public event EventHandler&lt;System.Windows.ExceptionRoutedEventArgs&gt; MediaFailed;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler`1&lt;class System.Windows.ExceptionRoutedEventArgs&gt; MediaFailed" />
<MemberSignature Language="DocId" Value="E:System.Windows.Controls.MediaElement.MediaFailed" />
<MemberSignature Language="VB.NET" Value="Public Custom Event MediaFailed As EventHandler(Of ExceptionRoutedEventArgs) " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event EventHandler&lt;System::Windows::ExceptionRoutedEventArgs ^&gt; ^ MediaFailed;" />
<MemberSignature Language="F#" Value="member this.MediaFailed : EventHandler&lt;System.Windows.ExceptionRoutedEventArgs&gt; " Usage="member this.MediaFailed : System.EventHandler&lt;System.Windows.ExceptionRoutedEventArgs&gt; " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler&lt;System.Windows.ExceptionRoutedEventArgs&gt;</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when an error is encountered.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<a name="routedEventInfo_MediaFailed"></a>
## Routed Event Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.MediaElement.MediaFailedEvent>|
|Routing strategy|Bubbling|
|Delegate|<xref:System.EventHandler%601>, with constraint of <xref:System.Windows.ExceptionRoutedEventArgs>.|
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="MediaFailedEvent">
<MemberSignature Language="C#" Value="public static readonly System.Windows.RoutedEvent MediaFailedEvent;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.RoutedEvent MediaFailedEvent" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.MediaElement.MediaFailedEvent" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly MediaFailedEvent As RoutedEvent " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::RoutedEvent ^ MediaFailedEvent;" />
<MemberSignature Language="F#" Value=" staticval mutable MediaFailedEvent : System.Windows.RoutedEvent" Usage="System.Windows.Controls.MediaElement.MediaFailedEvent" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.RoutedEvent</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="E:System.Windows.Controls.MediaElement.MediaFailed" /> routed event.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="MediaOpened">
<MemberSignature Language="C#" Value="public event System.Windows.RoutedEventHandler MediaOpened;" />
<MemberSignature Language="ILAsm" Value=".event class System.Windows.RoutedEventHandler MediaOpened" />
<MemberSignature Language="DocId" Value="E:System.Windows.Controls.MediaElement.MediaOpened" />
<MemberSignature Language="VB.NET" Value="Public Custom Event MediaOpened As RoutedEventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event System::Windows::RoutedEventHandler ^ MediaOpened;" />
<MemberSignature Language="F#" Value="member this.MediaOpened : System.Windows.RoutedEventHandler " Usage="member this.MediaOpened : System.Windows.RoutedEventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.RoutedEventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when media loading has finished.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<a name="routedEventInfo_MediaOpened"></a>
## Routed Event Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.MediaElement.MediaOpenedEvent>|
|Routing strategy|Bubbling|
|Delegate|<xref:System.Windows.RoutedEventHandler>|
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="MediaOpenedEvent">
<MemberSignature Language="C#" Value="public static readonly System.Windows.RoutedEvent MediaOpenedEvent;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.RoutedEvent MediaOpenedEvent" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.MediaElement.MediaOpenedEvent" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly MediaOpenedEvent As RoutedEvent " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::RoutedEvent ^ MediaOpenedEvent;" />
<MemberSignature Language="F#" Value=" staticval mutable MediaOpenedEvent : System.Windows.RoutedEvent" Usage="System.Windows.Controls.MediaElement.MediaOpenedEvent" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.RoutedEvent</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="E:System.Windows.Controls.MediaElement.MediaOpened" /> routed event.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="NaturalDuration">
<MemberSignature Language="C#" Value="public System.Windows.Duration NaturalDuration { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Duration NaturalDuration" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.NaturalDuration" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property NaturalDuration As Duration" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Windows::Duration NaturalDuration { System::Windows::Duration get(); };" />
<MemberSignature Language="F#" Value="member this.NaturalDuration : System.Windows.Duration" Usage="System.Windows.Controls.MediaElement.NaturalDuration" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Duration</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the natural duration of the media.</summary>
<value>The natural duration of the media.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The value returned is independent of <xref:System.Windows.Controls.MediaElement.SpeedRatio%2A>.
<xref:System.Windows.Controls.MediaElement.NaturalDuration%2A> is not accurate until the <xref:System.Windows.Controls.MediaElement.MediaOpened> event has been raised.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="NaturalVideoHeight">
<MemberSignature Language="C#" Value="public int NaturalVideoHeight { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 NaturalVideoHeight" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.NaturalVideoHeight" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property NaturalVideoHeight As Integer" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property int NaturalVideoHeight { int get(); };" />
<MemberSignature Language="F#" Value="member this.NaturalVideoHeight : int" Usage="System.Windows.Controls.MediaElement.NaturalVideoHeight" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the height of the video associated with the media.</summary>
<value>The height of the video associated with the media. Audio files will return zero.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<xref:System.Windows.Controls.MediaElement.NaturalVideoHeight%2A> is not accurate until the <xref:System.Windows.Controls.MediaElement.MediaOpened> event has been raised.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="NaturalVideoWidth">
<MemberSignature Language="C#" Value="public int NaturalVideoWidth { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 NaturalVideoWidth" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.NaturalVideoWidth" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property NaturalVideoWidth As Integer" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property int NaturalVideoWidth { int get(); };" />
<MemberSignature Language="F#" Value="member this.NaturalVideoWidth : int" Usage="System.Windows.Controls.MediaElement.NaturalVideoWidth" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the width of the video associated with the media.</summary>
<value>The width of the video associated with the media.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<xref:System.Windows.Controls.MediaElement.NaturalVideoWidth%2A> is not accurate until the <xref:System.Windows.Controls.MediaElement.MediaOpened> event has been raised.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="OnCreateAutomationPeer">
<MemberSignature Language="C#" Value="protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance class System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.MediaElement.OnCreateAutomationPeer" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function OnCreateAutomationPeer () As AutomationPeer" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; override System::Windows::Automation::Peers::AutomationPeer ^ OnCreateAutomationPeer();" />
<MemberSignature Language="F#" Value="override this.OnCreateAutomationPeer : unit -&gt; System.Windows.Automation.Peers.AutomationPeer" Usage="mediaElement.OnCreateAutomationPeer " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.Peers.AutomationPeer</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Creates and returns an <see cref="T:System.Windows.Automation.Peers.AutomationPeer" /> object for this <see cref="T:System.Windows.Controls.MediaElement" />.</summary>
<returns>An <see cref="T:System.Windows.Automation.Peers.AutomationPeer" /> for this <see cref="T:System.Windows.Controls.MediaElement" />.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="OnRender">
<MemberSignature Language="C#" Value="protected override void OnRender (System.Windows.Media.DrawingContext drawingContext);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void OnRender(class System.Windows.Media.DrawingContext drawingContext) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.MediaElement.OnRender(System.Windows.Media.DrawingContext)" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; override void OnRender(System::Windows::Media::DrawingContext ^ drawingContext);" />
<MemberSignature Language="F#" Value="override this.OnRender : System.Windows.Media.DrawingContext -&gt; unit" Usage="mediaElement.OnRender drawingContext" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="drawingContext" Type="System.Windows.Media.DrawingContext" />
</Parameters>
<Docs>
<param name="drawingContext">The <see cref="T:System.Windows.Media.DrawingContext" /> to draw.</param>
<summary>Draws the content of a <see cref="T:System.Windows.Media.DrawingContext" /> object during the render pass of a <see cref="T:System.Windows.Controls.MediaElement" /> control.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Pause">
<MemberSignature Language="C#" Value="public void Pause ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Pause() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.MediaElement.Pause" />
<MemberSignature Language="VB.NET" Value="Public Sub Pause ()" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; void Pause();" />
<MemberSignature Language="F#" Value="member this.Pause : unit -&gt; unit" Usage="mediaElement.Pause " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Pauses media at the current position.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method pauses the media if the media is currently running. The <xref:System.Windows.Controls.MediaElement.Play%2A> method can be used to resume.
This method can be used only when the <xref:System.Windows.Controls.MediaElement.Clock%2A> property is `null`. When the <xref:System.Windows.Controls.MediaElement.Clock%2A> property is non-`null`, the timing engine controls media playback behavior.
This method has an effect only if the <xref:System.Windows.Controls.MediaElement.LoadedBehavior%2A> property is set to <xref:System.Windows.Controls.MediaState.Manual>.
]]></format>
</remarks>
<exception cref="T:System.InvalidOperationException">The <see cref="P:System.Windows.Controls.MediaElement.Clock" /> property is not <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="Play">
<MemberSignature Language="C#" Value="public void Play ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Play() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.MediaElement.Play" />
<MemberSignature Language="VB.NET" Value="Public Sub Play ()" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; void Play();" />
<MemberSignature Language="F#" Value="member this.Play : unit -&gt; unit" Usage="mediaElement.Play " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Plays media from the current position.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method will begin the media if it is not currently active or resume media if it is paused. This method has no effect if the media is currently running.
This method can be used only when the <xref:System.Windows.Controls.MediaElement.Clock%2A> property is `null`. When the <xref:System.Windows.Controls.MediaElement.Clock%2A> property is non-`null`, the timing engine controls media playback behavior.
This method has an effect only if the <xref:System.Windows.Controls.MediaElement.LoadedBehavior%2A> property is set to <xref:System.Windows.Controls.MediaState.Manual>.
]]></format>
</remarks>
<exception cref="T:System.InvalidOperationException">The <see cref="P:System.Windows.Controls.MediaElement.Clock" /> property is not <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="Position">
<MemberSignature Language="C#" Value="public TimeSpan Position { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.TimeSpan Position" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.Position" />
<MemberSignature Language="VB.NET" Value="Public Property Position As TimeSpan" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property TimeSpan Position { TimeSpan get(); void set(TimeSpan value); };" />
<MemberSignature Language="F#" Value="member this.Position : TimeSpan with get, set" Usage="System.Windows.Controls.MediaElement.Position" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.TimeSpan</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the current position of progress through the media's playback time.</summary>
<value>The amount of time since the beginning of the media. The default is 00:00:00.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Setting this property can enable you to jump to different points in playback (also known as seeking). Not all media types allow seek operations. The <xref:System.Windows.Controls.MediaElement.MediaFailed> event will fire if the media source does not allow seeking.
This property has no effect until after the <xref:System.Windows.Controls.MediaElement.MediaOpened> event has occurred.
This property can be set only when the <xref:System.Windows.Controls.MediaElement.Clock%2A> property is `null`. When the <xref:System.Windows.Controls.MediaElement.Clock%2A> property is non-`null`, the timing engine controls media playback behavior.
]]></format>
</remarks>
<exception cref="T:System.InvalidOperationException">The <see cref="P:System.Windows.Controls.MediaElement.Clock" /> property is not <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="ScriptCommand">
<MemberSignature Language="C#" Value="public event EventHandler&lt;System.Windows.MediaScriptCommandRoutedEventArgs&gt; ScriptCommand;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler`1&lt;class System.Windows.MediaScriptCommandRoutedEventArgs&gt; ScriptCommand" />
<MemberSignature Language="DocId" Value="E:System.Windows.Controls.MediaElement.ScriptCommand" />
<MemberSignature Language="VB.NET" Value="Public Custom Event ScriptCommand As EventHandler(Of MediaScriptCommandRoutedEventArgs) " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event EventHandler&lt;System::Windows::MediaScriptCommandRoutedEventArgs ^&gt; ^ ScriptCommand;" />
<MemberSignature Language="F#" Value="member this.ScriptCommand : EventHandler&lt;System.Windows.MediaScriptCommandRoutedEventArgs&gt; " Usage="member this.ScriptCommand : System.EventHandler&lt;System.Windows.MediaScriptCommandRoutedEventArgs&gt; " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler&lt;System.Windows.MediaScriptCommandRoutedEventArgs&gt;</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when a script command is encountered in the media.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<a name="routedEventInfo_ScriptCommand"></a>
## Routed Event Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.MediaElement.ScriptCommandEvent>|
|Routing strategy|Bubbling|
|Delegate|<xref:System.EventHandler>, with constraint of <xref:System.Windows.MediaScriptCommandRoutedEventArgs>|
]]></format>
</remarks>
<related type="ExternalDocumentation" href="https://go.microsoft.com/fwlink/?linkid=57417">IWMPEventsScriptCommand</related>
</Docs>
</Member>
<Member MemberName="ScriptCommandEvent">
<MemberSignature Language="C#" Value="public static readonly System.Windows.RoutedEvent ScriptCommandEvent;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.RoutedEvent ScriptCommandEvent" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.MediaElement.ScriptCommandEvent" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly ScriptCommandEvent As RoutedEvent " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::RoutedEvent ^ ScriptCommandEvent;" />
<MemberSignature Language="F#" Value=" staticval mutable ScriptCommandEvent : System.Windows.RoutedEvent" Usage="System.Windows.Controls.MediaElement.ScriptCommandEvent" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.RoutedEvent</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="E:System.Windows.Controls.MediaElement.ScriptCommand" /> routed event.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ScrubbingEnabled">
<MemberSignature Language="C#" Value="public bool ScrubbingEnabled { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool ScrubbingEnabled" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.ScrubbingEnabled" />
<MemberSignature Language="VB.NET" Value="Public Property ScrubbingEnabled As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool ScrubbingEnabled { bool get(); void set(bool value); };" />
<MemberSignature Language="F#" Value="member this.ScrubbingEnabled : bool with get, set" Usage="System.Windows.Controls.MediaElement.ScrubbingEnabled" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value that indicates whether the <see cref="T:System.Windows.Controls.MediaElement" /> will update frames for seek operations while paused.</summary>
<value>
<see langword="true" /> if frames are updated while paused; otherwise, <see langword="false" />. The default is <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When set to `false`, seeking to a specific location will only update the displayed frame if media is playing.
Setting <xref:System.Windows.Controls.MediaElement.ScrubbingEnabled%2A> to `true` can incur some performance costs, especially when interactively controlling media playback.
<a name="dependencyPropertyInfo_ScrubbingEnabled"></a>
## Dependency Property Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.MediaElement.ScrubbingEnabledProperty>|
|Metadata properties set to `true`|None|
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="ScrubbingEnabledProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.DependencyProperty ScrubbingEnabledProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.DependencyProperty ScrubbingEnabledProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.MediaElement.ScrubbingEnabledProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly ScrubbingEnabledProperty As DependencyProperty " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::DependencyProperty ^ ScrubbingEnabledProperty;" />
<MemberSignature Language="F#" Value=" staticval mutable ScrubbingEnabledProperty : System.Windows.DependencyProperty" Usage="System.Windows.Controls.MediaElement.ScrubbingEnabledProperty" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.DependencyProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Controls.MediaElement.ScrubbingEnabled" /> dependency property.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Source">
<MemberSignature Language="C#" Value="public Uri Source { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Uri Source" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.Source" />
<MemberSignature Language="VB.NET" Value="Public Property Source As Uri" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property Uri ^ Source { Uri ^ get(); void set(Uri ^ value); };" />
<MemberSignature Language="F#" Value="member this.Source : Uri with get, set" Usage="System.Windows.Controls.MediaElement.Source" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Uri</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a media source on the <see cref="T:System.Windows.Controls.MediaElement" />.</summary>
<value>The [!INCLUDE[TLA2#tla_uri](~/includes/tla2sharptla-uri-md.md)] that specifies the source of the element. The default is <see langword="null" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Setting the value of this property causes the media to play.
This property can be set only when the <xref:System.Windows.Controls.MediaElement.Clock%2A> property is `null`. When the <xref:System.Windows.Controls.MediaElement.Clock%2A> property is non-`null`, the timing engine controls media playback behavior.
<a name="dependencyPropertyInfo_Source"></a>
## Dependency Property Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.MediaElement.SourceProperty>|
|Metadata properties set to `true`|<xref:System.Windows.FrameworkPropertyMetadata.AffectsMeasure%2A>, <xref:System.Windows.FrameworkPropertyMetadata.AffectsRender%2A>|
]]></format>
</remarks>
<exception cref="T:System.InvalidOperationException">The <see cref="P:System.Windows.Controls.MediaElement.Clock" /> property is not <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="SourceProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.DependencyProperty SourceProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.DependencyProperty SourceProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.MediaElement.SourceProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly SourceProperty As DependencyProperty " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::DependencyProperty ^ SourceProperty;" />
<MemberSignature Language="F#" Value=" staticval mutable SourceProperty : System.Windows.DependencyProperty" Usage="System.Windows.Controls.MediaElement.SourceProperty" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.DependencyProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Controls.MediaElement.Source" /> dependency property.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="SpeedRatio">
<MemberSignature Language="C#" Value="public double SpeedRatio { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance float64 SpeedRatio" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.SpeedRatio" />
<MemberSignature Language="VB.NET" Value="Public Property SpeedRatio As Double" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property double SpeedRatio { double get(); void set(double value); };" />
<MemberSignature Language="F#" Value="member this.SpeedRatio : double with get, set" Usage="System.Windows.Controls.MediaElement.SpeedRatio" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Double</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the speed ratio of the media.</summary>
<value>The speed ratio of the media. The valid range is between 0 (zero) and infinity. Values less than 1 yield slower than normal playback, and values greater than 1 yield faster than normal playback. Negative values are treated as 0. The default value is 1.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This property can be set only when the <xref:System.Windows.Controls.MediaElement.Clock%2A> property is `null`. When the <xref:System.Windows.Controls.MediaElement.Clock%2A> property is non-`null`, the timing engine controls media playback behavior.
Audio playback may not occur unless the value of <xref:System.Windows.Controls.MediaElement.SpeedRatio%2A> is 1.
]]></format>
</remarks>
<exception cref="T:System.InvalidOperationException">The <see cref="P:System.Windows.Controls.MediaElement.Clock" /> property is not <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="Stop">
<MemberSignature Language="C#" Value="public void Stop ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Stop() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Controls.MediaElement.Stop" />
<MemberSignature Language="VB.NET" Value="Public Sub Stop ()" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; void Stop();" />
<MemberSignature Language="F#" Value="member this.Stop : unit -&gt; unit" Usage="mediaElement.Stop " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Stops and resets media to be played from the beginning.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method can be used only when the <xref:System.Windows.Controls.MediaElement.Clock%2A> property is `null`. When the <xref:System.Windows.Controls.MediaElement.Clock%2A> property is non-`null`, the timing engine controls media playback behavior.
This method has an effect only if the <xref:System.Windows.Controls.MediaElement.LoadedBehavior%2A> property is set to <xref:System.Windows.Controls.MediaState.Manual>.
]]></format>
</remarks>
<exception cref="T:System.InvalidOperationException">The <see cref="P:System.Windows.Controls.MediaElement.Clock" /> property is not <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="Stretch">
<MemberSignature Language="C#" Value="public System.Windows.Media.Stretch Stretch { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Media.Stretch Stretch" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.Stretch" />
<MemberSignature Language="VB.NET" Value="Public Property Stretch As Stretch" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Windows::Media::Stretch Stretch { System::Windows::Media::Stretch get(); void set(System::Windows::Media::Stretch value); };" />
<MemberSignature Language="F#" Value="member this.Stretch : System.Windows.Media.Stretch with get, set" Usage="System.Windows.Controls.MediaElement.Stretch" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Media.Stretch</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a <see cref="T:System.Windows.Media.Stretch" /> value that describes how a <see cref="T:System.Windows.Controls.MediaElement" /> fills the destination rectangle.</summary>
<value>The stretch value for the rendered media. The default is <see cref="F:System.Windows.Media.Stretch.Uniform" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The following illustration demonstrates the different <xref:System.Windows.Media.Stretch> values.
![Different TileBrush Stretch settings](~/add/media/img-mmgraphics-stretchenum.jpg "Different TileBrush Stretch settings")
Different gradient spread methods
<a name="dependencyPropertyInfo_Stretch"></a>
## Dependency Property Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.MediaElement.StretchProperty>|
|Metadata properties set to `true`|<xref:System.Windows.FrameworkPropertyMetadata.AffectsMeasure%2A>|
## Examples
The following example shows how to create a <xref:System.Windows.Controls.Viewbox> and set the <xref:System.Windows.Media.Stretch> mode of content.
[!code-cpp[ViewBoxCode#2](~/samples/snippets/cpp/VS_Snippets_Wpf/ViewBoxCode/CPP/ViewboxCode.cpp#2)]
[!code-csharp[ViewBoxCode#2](~/samples/snippets/csharp/VS_Snippets_Wpf/ViewBoxCode/Csharp/ViewboxCode.cs#2)]
[!code-vb[ViewBoxCode#2](~/samples/snippets/visualbasic/VS_Snippets_Wpf/ViewBoxCode/VisualBasic/ViewBoxCodeVB.vb#2)]
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="StretchDirection">
<MemberSignature Language="C#" Value="public System.Windows.Controls.StretchDirection StretchDirection { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Controls.StretchDirection StretchDirection" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.StretchDirection" />
<MemberSignature Language="VB.NET" Value="Public Property StretchDirection As StretchDirection" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Windows::Controls::StretchDirection StretchDirection { System::Windows::Controls::StretchDirection get(); void set(System::Windows::Controls::StretchDirection value); };" />
<MemberSignature Language="F#" Value="member this.StretchDirection : System.Windows.Controls.StretchDirection with get, set" Usage="System.Windows.Controls.MediaElement.StretchDirection" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Controls.StretchDirection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value that determines the restrictions on scaling that are applied to the image.</summary>
<value>The value that specifies the direction the element is stretched. The default is <see cref="F:System.Windows.Controls.StretchDirection.Both" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<a name="dependencyPropertyInfo_StretchDirection"></a>
## Dependency Property Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.MediaElement.StretchDirectionProperty>|
|Metadata properties set to `true`|<xref:System.Windows.FrameworkPropertyMetadata.AffectsMeasure%2A>|
## Examples
[!code-xaml[mediagallery_snip#StretchMediaElementExampleWholePage](~/samples/snippets/visualbasic/VS_Snippets_Wpf/MediaGallery_snip/VB/StretchMediaElementExample.xaml#stretchmediaelementexamplewholepage)]
[!code-xaml[mediagallery_snip#StretchMediaElementExampleWholePage](~/samples/snippets/csharp/VS_Snippets_Wpf/MediaGallery_snip/CSharp/StretchMediaElementExample.xaml#stretchmediaelementexamplewholepage)]
]]></format>
</remarks>
<altmember cref="P:System.Windows.FrameworkElement.FlowDirection" />
</Docs>
</Member>
<Member MemberName="StretchDirectionProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.DependencyProperty StretchDirectionProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.DependencyProperty StretchDirectionProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.MediaElement.StretchDirectionProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly StretchDirectionProperty As DependencyProperty " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::DependencyProperty ^ StretchDirectionProperty;" />
<MemberSignature Language="F#" Value=" staticval mutable StretchDirectionProperty : System.Windows.DependencyProperty" Usage="System.Windows.Controls.MediaElement.StretchDirectionProperty" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.DependencyProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Controls.MediaElement.StretchDirection" /> dependency property.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="StretchProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.DependencyProperty StretchProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.DependencyProperty StretchProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.MediaElement.StretchProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly StretchProperty As DependencyProperty " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::DependencyProperty ^ StretchProperty;" />
<MemberSignature Language="F#" Value=" staticval mutable StretchProperty : System.Windows.DependencyProperty" Usage="System.Windows.Controls.MediaElement.StretchProperty" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.DependencyProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Controls.MediaElement.Stretch" /> dependency property.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="System.Windows.Markup.IUriContext.BaseUri">
<MemberSignature Language="C#" Value="Uri System.Windows.Markup.IUriContext.BaseUri { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Uri System.Windows.Markup.IUriContext.BaseUri" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.System#Windows#Markup#IUriContext#BaseUri" />
<MemberSignature Language="VB.NET" Value=" Property BaseUri As Uri Implements IUriContext.BaseUri" />
<MemberSignature Language="C++ CLI" Value="property Uri ^ System::Windows::Markup::IUriContext::BaseUri { Uri ^ get(); void set(Uri ^ value); };" />
<MemberSignature Language="F#" Usage="System.Windows.Markup.IUriContext.BaseUri" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:System.Windows.Markup.IUriContext.BaseUri</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Uri</ReturnType>
</ReturnValue>
<Docs>
<summary>This type or member supports the [!INCLUDE[TLA#tla_winclient](~/includes/tlasharptla-winclient-md.md)] infrastructure and is not intended to be used directly from your code.</summary>
<value>The base URI of the current context.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="UnloadedBehavior">
<MemberSignature Language="C#" Value="public System.Windows.Controls.MediaState UnloadedBehavior { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Controls.MediaState UnloadedBehavior" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.UnloadedBehavior" />
<MemberSignature Language="VB.NET" Value="Public Property UnloadedBehavior As MediaState" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Windows::Controls::MediaState UnloadedBehavior { System::Windows::Controls::MediaState get(); void set(System::Windows::Controls::MediaState value); };" />
<MemberSignature Language="F#" Value="member this.UnloadedBehavior : System.Windows.Controls.MediaState with get, set" Usage="System.Windows.Controls.MediaElement.UnloadedBehavior" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Controls.MediaState</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the unload behavior <see cref="T:System.Windows.Controls.MediaState" /> for the media.</summary>
<value>The unload behavior <see cref="T:System.Windows.Controls.MediaState" /> for the media.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<a name="dependencyPropertyInfo_UnloadedBehavior"></a>
## Dependency Property Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.MediaElement.UnloadedBehaviorProperty>|
|Metadata properties set to `true`|None|
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="UnloadedBehaviorProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.DependencyProperty UnloadedBehaviorProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.DependencyProperty UnloadedBehaviorProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.MediaElement.UnloadedBehaviorProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly UnloadedBehaviorProperty As DependencyProperty " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::DependencyProperty ^ UnloadedBehaviorProperty;" />
<MemberSignature Language="F#" Value=" staticval mutable UnloadedBehaviorProperty : System.Windows.DependencyProperty" Usage="System.Windows.Controls.MediaElement.UnloadedBehaviorProperty" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.DependencyProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Controls.MediaElement.UnloadedBehavior" /> dependency property.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Volume">
<MemberSignature Language="C#" Value="public double Volume { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance float64 Volume" />
<MemberSignature Language="DocId" Value="P:System.Windows.Controls.MediaElement.Volume" />
<MemberSignature Language="VB.NET" Value="Public Property Volume As Double" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property double Volume { double get(); void set(double value); };" />
<MemberSignature Language="F#" Value="member this.Volume : double with get, set" Usage="System.Windows.Controls.MediaElement.Volume" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Double</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the media's volume.</summary>
<value>The media's volume represented on a linear scale between 0 and 1. The default is 0.5.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<a name="dependencyPropertyInfo_Volume"></a>
## Dependency Property Information
|||
|-|-|
|Identifier field|<xref:System.Windows.Controls.MediaElement.VolumeProperty>|
|Metadata properties set to `true`|None|
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="VolumeProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.DependencyProperty VolumeProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.DependencyProperty VolumeProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Controls.MediaElement.VolumeProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly VolumeProperty As DependencyProperty " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::DependencyProperty ^ VolumeProperty;" />
<MemberSignature Language="F#" Value=" staticval mutable VolumeProperty : System.Windows.DependencyProperty" Usage="System.Windows.Controls.MediaElement.VolumeProperty" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.DependencyProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Controls.MediaElement.Volume" /> dependency property.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.