silverlight小技巧
silverlight 背景透明
- aspx page
- 添加PluginBackground="Transparent"
- 添加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
- 添加<param name="background" value="Transparent" />
- 添加<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>