Extended Library for WPF and Silverlight | ComponentOne
C1.Silverlight.Extended Namespace / C1HtmlHost Class
Members

In This Topic
    C1HtmlHost Class
    In This Topic
    Control that shows HTML content within a Silverlight page.
    Object Model
    C1HtmlHost Class
    Syntax
    'Declaration
     
    
    Public Class C1HtmlHost 
       Inherits System.Windows.Controls.Panel
    public class C1HtmlHost : System.Windows.Controls.Panel 
    Remarks

    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>
    Inheritance Hierarchy

    System.Object
       System.Windows.DependencyObject
          System.Windows.UIElement
             System.Windows.FrameworkElement
                System.Windows.Controls.Panel
                   C1.Silverlight.Extended.C1HtmlHost

    See Also