Configuring the Silverlight plugin
When we create a new Silverlight solution in Visual Studio 2010, we are given the option to also create an ASP.NET site that will host it. If you inspect the .aspx
file in that site, you'll notice that your Silverlight application is hosted in an HTML object
element:
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"> <param name="source" value="ClientBin/Chapter7-RESX.xap"/> <param name="onError" value="onSilverlightError" /> <param name="background" value="white" /> <param name="minRuntimeVersion" value="4.0.60310.0" /> <param name="autoUpgrade" value="true" /> <param name="initparams" value= "ShowNames=true,CurrentUser=local\admin" /> <a href="http://go.microsoft.com/fwlink/?LinkID=149156 &v=4.0.60310.0" style="text-decoration:none"> <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style...