Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有多个页面的 Silverlight 应用程序,这些页面在框架控件中被导航到。但是有这一页,在导航到时,突然使窗口变为空白,这让我别无选择,只能刷新应用程序。这种情况很少发生,但我想知道它的原因以及是否可以阻止它。
(对不起,我的英语不好)
可能发生了一些异常。在您App.xaml.cs的 上,在该方法上放置一个断点,Application_UnhandledException并查看当您导航到该页面时它是否被调用。如果是,则e.ExceptionObject包含导致此问题的异常。
App.xaml.cs
Application_UnhandledException
e.ExceptionObject