问题描述
您好,
我的Pivot Viewer控件出现问题。用户打开一个页面,在该页面上存在枢轴查看器控件,用户在控件完全加载之前导航离开页面。我得到以下异常
I have a problem with the Pivot Viewer control. I the user opens a pages on which the pivot viewer control is present and the user navigates away from the page before control has fully loaded. I get the following exception
Value does not fall within the expected range.
på MS.Internal.XcpImports.CheckHResult(UInt32 hr)
på MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, DependencyObject doh)
på MS.Internal.XcpImports.SetValue(IManagedPeerBase doh, DependencyProperty property, Object obj)
på System.Windows.DependencyObject.SetObjectValueToCore(DependencyProperty dp, Object value)
på System.Windows.DependencyObject.SetEffectiveValue(DependencyProperty property, EffectiveValueEntry& newEntry, Object newValue)
på System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
på System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
på System.Windows.Navigation.NavigationService.CompleteNavigation(DependencyObject content)
på System.Windows.Navigation.NavigationService.<>c__DisplayClass8.<NavigateCore_StartNavigation>b__5()
该异常只能全局捕获。我注意到其他人遇到了和我一样的问题
The exception can only be caught globally. I have noticed that others is having the same problem as me
但我没有找到任何解决方案。有任何想法吗?整个控件加载完成后是否可以获取事件?我已经尝试订阅加载的事件,这是一个早期被解雇的事件。
But I have not found any solution. Any ideas? Is it possible to get an event when the entire control has finished loading? I have tried to subscribe to the loaded event, bit that is being fired way to early.
谢谢
Henrik
推荐答案
来自帖子 ,我们b $ b知道
stevenh7776 已报告连接问题,我们的工程师会考虑到这个问题,请多关注一下我们的Connect反馈门户。
From the post http://social.msdn.microsoft.com/Forums/en-US/silverlightbugs/thread/74ba1a3e-96db-4225-852b-6b33e4e5d951, we know stevenh7776 has reported the issue on connect, our engineer will take into consideration about this issue, please pay more attention to the feedback on our Connect feedback portal.
谢谢。
这篇关于当用户在导航之前导航时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!