Control that shows HTML content within a Silverlight page.

Namespace:  C1.Silverlight.Extended
Assembly:  C1.Silverlight.Extended (in C1.Silverlight.Extended.dll)

Syntax

C#
public class C1HtmlHost : Panel, IDisposable
Visual Basic
Public Class C1HtmlHost _
	Inherits Panel _
	Implements IDisposable

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:

Copy CodeC#
<form id="form1" runat="server" style="height:100%;">
  <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
  <div  style="height:100%;">
    <asp:Silverlight 
      ID="Xaml1" runat="server" 
      Source="~/ClientBin/TestM1.xap" 
      Version="2.0" Width="100%" Height="100%" 
      <b>Windowless="true" /></b>
  </div>
</form>
If the plugin is declared in a html page, it should be edited as follows:
Copy CodeC#
<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" />
    <b><param name="windowless" value="true" /></b>
    <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