Silverlight OutOfBrowser Problem

旧巷老猫 提交于 2019-12-11 04:36:27

问题


I am developing silverlight application. I want create the out of browser application .

This is My OutOfBrowserSettings.xml

<OutOfBrowserSettings ShortName="CollegeManagement Application" EnableGPUAcceleration="False" ShowInstallMenuItem="True">
  <OutOfBrowserSettings.Blurb>CollegeManagement Application on your desktop; at home, at work or on the go.</OutOfBrowserSettings.Blurb>
  <OutOfBrowserSettings.WindowSettings>
    <WindowSettings Title="CollegeManagement Application" Height="300" Width="500" />
  </OutOfBrowserSettings.WindowSettings>
  <OutOfBrowserSettings.Icons />
</OutOfBrowserSettings>

It Installed correctly. But When I open the outofBrowser application, It Shows Blank White Page,It doesn't Show start page

please help me,

Thank you.


回答1:


I can't see anything wrong with the settings you have posted. The first diagnostic I would do is create a "Hello, World!" Silverlight app with these OOB settings. Check that it runs in browser then install it as OOB. Run the OOB, does it work? I suspect the answer is yes.

The next place to look is the App.xaml.cs, what is happening on application start that may not be working as expected in OOB?




回答2:


Finally I figured out the problem, I have been added the SizeChangedEventHandler on Startup page for dynamically resizing the page.

Once I have removed SizeChangedEventHandler it is all working fine.

thank you.



来源:https://stackoverflow.com/questions/2392309/silverlight-outofbrowser-problem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!