0

我有一个 XAML 页面,当您第一次打开页面时,它会在设计器中正确加载。页面上的控件之一是Telerik RadMenu. 如果单击 Visual Studio 设计器中的 RadMenuItem 之一,则会引发以下异常。

异常:对 COM 组件的调用已返回错误 HRESULT E_FAIL。
堆栈跟踪:

at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
at MS.Internal.XcpImports.Collection_InsertValue[T](PresentationFrameworkCollection`1 collection, UInt32 index, CValue value)
at MS.Internal.XcpImports.Collection_InsertDependencyObject[T](PresentationFrameworkCollection`1 collection, UInt32 index, DependencyObject value)
at System.Windows.PresentationFrameworkCollection`1.InsertDependencyObject(Int32 index, DependencyObject value)
at System.Windows.Controls.UIElementCollection.InsertInternal(Int32 index, UIElement value)

内部异常:无

这会阻止设计器工作,使其再次工作的唯一方法是关闭 + 重新打开 Visual Studio。这是我的错误XAML还是需要向 Telerik / Microsoft 报告的问题?

4

1 回答 1

0

这是由 Visual Studio 2012 中的错误引起的。VS 2013 没有这个问题,VS 2012 更新 4 修复了这个问题。

于 2014-04-01T09:50:07.933 回答