2011-08-17 56 views
0

我在嘗試將PivotViewer控件拖到MainPage.xaml上時收到此錯誤。未指定錯誤(來自HRESULT(E_FAIL)的異常)

enter image description here

,導致了這個地步的步驟如下......

  1. 安裝PivotViewer SDK
  2. 創建一個新的Silverlight業務應用程序
  3. 添加到系統的參考。 Windows.Pivot
  4. 將此項添加到我在XAML中的UserControl標記中:

    的xmlns:樞軸= 「CLR-名稱空間:System.Windows.Pivot;裝配= System.Windows.Pivot」

  5. 拖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) 

回答

1

的PivotViewer需要Silverlight工具包的更多信息。你有沒有在你的項目中引用的工具包?這可能是因爲這樣的轟炸。

相關問題