我在 WPF 上收到以下错误。
我正在使用 MVVM 数据绑定到窗口上的 DataContext + CollectionViewSources。
视图模型和视图中有太多代码需要发布,但我想知道在哪里可以找到它,因为没有出现行号。
该窗口使用 WPF 数据绑定与转换器,其中还有一些 Telerik 控件。
这是调用后的情况
TabItemSelectionEditor.UpdateLayout()
TabItemSelectionEditor 是一个 System.Windows.Control.TabItem
System.ComponentModel.Win32Exception(0x80004005):无效窗口
处理
在 MS.Win32.UnsafeNativeMethods.GetWindowText(HandleRef hWnd,
StringBuilder lpString, Int32 nMaxCount)
在
System.Windows.Automation.Peers.WindowAutomationPeer.GetNameCore()
在 System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
在 System.Windows.ContextLayoutManager.fireAutomationEvents()
在 System.Windows.ContextLayoutManager.UpdateLayout()
在 System.Windows.UIElement.UpdateLayout()
在
System.Windows.Controls.VirtualizingStackPanel.c_显示类b.b_7()
在
System.Windows.Threading.ExceptionWrapper.InternalRealCall(委托
回调、对象参数、Int32 numArgs)
在 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(对象
源、委托方法、对象参数、Int32 numArgs、委托
捕获处理程序)
内部异常没什么!
你没有吗DisplayClass
你的代码中的方法?
我还可以看到有一个VirtualizingStackPanel
涉及并在调用时发生错误UIElement.UpdateLayout()
对其子项的方法。
这就是我从这个错误中可以解决的所有问题,如果没有任何更多信息,我无法提供任何进一步的帮助。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)