以下是需要翻译的内容:
可能的原因是什么?有没有解决方法?任何线索都会受到赞赏。
如下所述,存在一个随机错误,该错误在设置SystemTray
可见性时会提示某些错误。我已在xaml中将SystemTray
可见性设置为false。它有时会随机崩溃应用程序,而并非总是如此。抛出的异常是System.ArgumentException
值不在预期范围内。
堆栈跟踪如下
Microsoft.Phone.Shell.Interop.NativeSystemTrayMethods.SetSysTrayVisible(IntPtr pSysTray, Boolean fVisible)
Microsoft.Phone.Shell.Interop.NativeSystemTrayInteropWrapper.SetSystemTrayVisible(Boolean isVisible)
Microsoft.Phone.Controls.PhoneApplicationPage.set_SystemTrayIsVisible(Boolean value)
Microsoft.Phone.Controls.PhoneApplicationPage..ctor()
可能的原因是什么?有没有解决方法?任何线索都会受到赞赏。