当我尝试将PivotViewer控件拖到MainPage.xaml上时,我收到此错误。
使我达到这一点的步骤如下......
将此添加到XAML中的UserControl标记:
的xmlns:枢轴= “CLR-名称空间:System.Windows.Pivot;装配= 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)
答案 0 :(得分:1)
PivotViewer需要Silverlight工具包。您是否拥有项目中引用的工具包?因为这可能是轰炸。