【发布时间】:2011-08-17 18:16:03
【问题描述】:
当我尝试将 PivotViewer 控件拖到 MainPage.xaml 时收到此错误。
导致我达到这一点的步骤如下......
- 已安装 PivotViewer SDK
- 创建了新的 Silverlight 业务应用程序
- 添加了对 System.Windows.Pivot 的引用
-
将此添加到我在 XAML 中的 UserControl 标记中:
xmlns:pivot="clr-namespace:System.Windows.Pivot;assembly=System.Windows.Pivot"
将 PivotViewer 控件拖到 MainPage.xaml
有什么解决办法吗?
编辑这里有更多关于错误信息的信息
Error HRESULT E_FAIL has been returned from a call to a COM component.
at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
at MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData)
at MS.Internal.XcpImports.Collection_Add[T](PresentationFrameworkCollection`1 collection, Object value)
at System.Windows.PresentationFrameworkCollection`1.AddImpl(Object value)
at System.Windows.PresentationFrameworkCollection`1.System.Collections.IList.Add(Object value)
at Microsoft.Expression.DesignModel.InstanceBuilders.ClrObjectInstanceBuilder.InstantiateChildren(IInstanceBuilderContext context, ViewNode viewNode, DocumentCompositeNode compositeNode, Boolean isNewInstance)
【问题讨论】:
标签: .net silverlight pivotviewer