Share via


MediaPlayer.MediaSkinSource Property

Gets or sets a value that identifies the skin used for the MediaPlayer control.

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

Syntax

'Declaration
<ThemeableAttribute(True)> _
Public Overridable Property MediaSkinSource As String
    Get
    Set
'Usage
Dim instance As MediaPlayer
Dim value As String

value = instance.MediaSkinSource

instance.MediaSkinSource = value
[ThemeableAttribute(true)]
public virtual string MediaSkinSource { get; set; }

Property Value

Type: System.String
The skin identifier.

Remarks

The media player skin defines the appearance and behavior of the MediaPlayer control in the browser.

There are several built-in skins. You can edit a built-in skin or create new skins using any tool that can edit XAML, such as Expression Blend or Visual Studio 2008.

A media player skin is a XAML file with elements having special names such as PlayButton and CaptionArea that are associated with actions when a media file plays. For example, you can define a media player skin that has a red triangle as an element and is named PlayButton. When a user clicks that element in the browser, the MediaPlayer control starts playing the media file.

The Classic.xaml skin is used if you do not specify a value for the MediaSkinSource property.

For more information about choosing and customizing media skins, see ASP.NET MediaPlayer Server Control.

Examples

The following example demonstrates how to set the MediaSkinSource property of the MediaPlayer class.

        MediaPlayer1.MediaSkinSource = DropDownList2.SelectedValue.ToString()
        MediaPlayer1.MediaSkinSource = DropDownList2.SelectedValue.ToString();

Platforms

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

See Also

Reference

MediaPlayer Class

MediaPlayer Members

System.Web.UI.SilverlightControls Namespace

Other Resources

XAML Elements of the MediaPlayer Skin