SilverlightPlugin Class

Represents the Silverlight browser plug-in.

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


Public Class SilverlightPlugin
Dim instance As SilverlightPlugin
public class SilverlightPlugin


The purpose of the SilverlightPlugin class is to enable a custom control to easily render Silverlight content.

The SilverlightPlugin class has many of the same members as the Silverlight class. The SilverlightPlugin class does not have the members that apply to a control as a whole, such as the OnPluginResized property.

Developing a custom control with Silverlight content typically involves this general workflow:

  • Create a custom control project.

  • In the Render method, instantiate the SilverlightPlugin class.

  • Set the properties such as the Source, Windowless, Background, and other properties.

  • Add a placeholder, such as a span or div element, where the Silverlight content will go.

  • Call the CreateObject method passing in the control instance, the HtmlTextWriter passed into the Render method, and the placeholder element where to insert the Silverlight content.

Inheritance Hierarchy


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


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

See Also


SilverlightPlugin Members

System.Web.UI.SilverlightControls Namespace