Reputation: 2851
I'm receiving this error when I attempt to drag a PivotViewer control onto MainPage.xaml.
The steps that led me to this point are the following...
Added this to my UserControl tag in the XAML:
xmlns:pivot="clr-namespace:System.Windows.Pivot;assembly=System.Windows.Pivot"
Dragged PivotViewer control onto MainPage.xaml
Any solutions?
EDIT Here's more info on the error message
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)
Upvotes: 0
Views: 775
Reputation: 865
The PivotViewer requires the Silverlight toolkit. Do you have the toolkit referenced in your project? It might be bombing because of that.
Upvotes: 1