TestPage页面的启动项更改
<div id="silverlightControlHost"> <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"> <param name="enableGPUAcceleration" value="true" /> <param name="source" value="XXX.xap"/> <param name="onError" value="onSilverlightError" /> <param name="background" value="white" /> <param name="minRuntimeVersion" value="3.0.40624.0" /> <param name="autoUpgrade" value="true" /> <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none"> <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/> </a> </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
private void Application_Startup(object sender, StartupEventArgs e) { this.RootVisual = new MotherPage(); }
[解决办法]
支持楼上
private void Application_Startup(object sender, StartupEventArgs e)
{
this.RootVisual = new MotherPage();
}
App.xml文件中实现启动不同XAML文件逻辑
在HTML中不能实现这样的功能
[解决办法]