visual studio - XAP files for silverlight 4 -
Can you put the lightlight 4 XAP files in an ASPX page and then make them in 2008? If so, how do you do this?
Sure, why not? Simply add XAP to your ASP.NET web project and add a tag to your ASPX. Here's the basic embed for a silverlight app:
object data = "data: app / x-silverlight-2," type = "application / x-silverlight-2" width = "100 % "Height =" 100% "& gt; & Lt; Param name = "source" value = "ClientBin / MyApp.xap" /> & Lt; Param name = "onError" value = "onSilverlight error" /> & Lt; Param name = "background" value = "white" /> & Lt; Param name = "minRuntimeVersion" value = "4.0.50401.0" /> & Lt; Param name = "auto upgrade" value = "true" /> & Lt; A href = "http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" style = "text-decoration: none" & gt; & Lt; Img src = "http://go.microsoft.com/fwlink/?LinkId=161376" alt = "get Microsoft Silverlight" style = "border-style: none" /> & Lt; / A & gt; & Lt; / Object & gt;
Comments
Post a Comment