C1.Silverlight.Extended Namespace : C1HtmlHost Class |
'Declaration
Public Class C1HtmlHost Inherits System.Windows.Controls.Panel
public class C1HtmlHost : System.Windows.Controls.Panel
To use this control the Silverlight plugin should have its 'windowless' parameter set to true.
For example, if the Silverlight plugin is declared in an aspx page, it should be edited as follows:
<form id="form1" runat="server" style="height:100;"> <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> <div style="height;"> <asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/TestM1.xap" Version="2.0" Width="100%" Height="100%" Windowless="true" /> </div> </form>
If the plugin is declared in a html page, it should be edited as follows: <div id="silverlightControlHost"> <object data="data:application/x-silverlight," type="application/x-silverlight-2-b1" width="100%" height="100%" > <param name="source" value="ClientBin/TestM1.xap"/> <param name="onerror" value="onSilverlightError" /> <param name="background" value="white" /> <param name="windowless" value="true" /> <a href="http://go.microsoft.com/fwlink/?LinkID=108182" style="text-decoration: none;"> <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/> </a> </object> <iframe style='visibility:hidden;height:0;width:0;border:0px'></iframe> </div>
System.Object
System.Windows.DependencyObject
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Panel
C1.Silverlight.Extended.C1HtmlHost
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2