Silverlight web part not grayed out behind SharePoint popup

If you create a Silverlight webpart and deploy it to SharePoint; it won’t gray out behind a default SharePoint popup. To fix this, you need to set the windowsless parameter to true (though this might affect performance a bit).

To do this, edit the default SilverlightPluginGenerator.cs file and add the following line after line number 113:

objectXElement.Add(this.CreateParameter(“windowless”, “true”));

This will add a parameter in HTML code like this:

This will fix it and send the Silverlight webpart to the back and get it grayed out when you want it to.

Related posts

Latest posts

Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *