silverlight 背景透明


silverlight小技巧
silverlight 背景透明
  • aspx page
    1. 添加PluginBackground="Transparent"
    2. 添加Windowless="true"
例子:
<asp:Silverlight Width="600px" Height="400px" PluginBackground="Transparent" Windowless="true" ID="Xaml1" runat="server" Source="~/ClientBin/SilverlightApplication.xap" MinimumVersion="2.0.30523"  />
  • html page
    1. 添加<param name="background" value="Transparent" />
    2. 添加<param name="windowless" value="true" />
例子:
<object data="data:application/x-silverlight," type="application/x-silverlight-2-b2" >
<param name="source" value="ClientBin/SilverlightApplication.xap"/>
<param name="onerror" value="onSilverlightError" />
<param name="pluginbackground" value="Transparent" />
<param name="windowless" value="true" /> 
</object>

posted @ 2008-09-02 11:28  王喆(nasa)  阅读(2179)  评论(0编辑  收藏  举报