.NET Framework Class Library for Silverlight
MediaPlayer..::.AutoPlay Property

Gets or sets a value that indicates whether the media file starts to play immediately after it is opened.

Namespace:  System.Web.UI.SilverlightControls
Assembly:  System.Web.Silverlight (in System.Web.Silverlight.dll)
Syntax

Visual Basic (Declaration)
<ThemeableAttribute(True)> _
Public Overridable Property AutoPlay As Boolean
    Get
    Set
Visual Basic (Usage)
Dim instance As MediaPlayer
Dim value As Boolean

value = instance.AutoPlay

instance.AutoPlay = value
C#
[ThemeableAttribute(true)]
public virtual bool AutoPlay { get; set; }

Property Value

Type: System..::.Boolean
true if the media file starts to play immediately after it is opened; otherwise, false. The default is false.
Remarks

If the AutoLoad property is set to true and the AutoPlay property is set to false, a Play button appears in the media display area and becomes enabled as soon as the media is available.

For more information about the AutoLoad and AutoPlay properties, see ASP.NET MediaPlayer Server Control.

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

Tags :


Page view tracker