下面提到了一个随机错误,它在设置SystemTray
可见性时说错了什么。我在xaml中将SystemTray
可见性设置为false。它有时会随机崩溃应用程序,而不总是。抛出的异常是System.ArgumentException
Value does not fall within the expected range.
SetSysTrayVisible bug Windows Phone 8
堆栈跟踪是如下
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()
有什么可以为它的可能的原因?任何解决方法?任何线索都表示赞赏。
检查任何其他页面或创建一个新页面,无论问题是否发生。 – asitis
不,它是随机的。检查这个http://social.msdn.microsoft。com/Forums/wpapps/zh-CN/62ffbd7f-d7fa-4b68-ba65-cd4e851f0b6c/is-this-stack-trace-a-bug-in-wp8-systemtrayisvisibletrue?forum = wpdevelop –
找不到页面。 – asitis