Getting started with Pivot


  •  Hello Everybody !


    Pivot looks great, but I don't know how integrate it in a project. I've download the SDK, but what's next ? Using XAML, or C#? I've try this code, but it doesn't work :

     PivotViewer viewer = new PivotViewer();

    viewer.LoadCollection("", string.Empty);


    I've the good xml files for distant access, but it's look like the loading of collection don't start.

    Anyone can help me ?


    Thank you

    Tuesday, June 29, 2010 12:01 PM


All replies

  • Do you get an error message? How did you create your collection?

    Tuesday, June 29, 2010 1:45 PM
  • After installing the PivotViewer (, look under "C:\Program Files\Microsoft SDKs\Silverlight\v4.0\PivotViewer\Jun10\Source" for a zip file with sample code. Extract the code in a new folder and open the solution file. In the contained PivotViewerSample project, you'll see how to embed the PivotViewer control in MainPage.xaml, and how to use LoadCollection() and handle events in the associated MainPage.xaml.cs.


    Tuesday, June 29, 2010 1:47 PM
  •  I've test the sample in the SDK, and I get an error like when I made it in XAML.

    "Child has already a parent".


    I've made my collection with the excel plug-in, and it works perfectly in the Pivot Browser

    Tuesday, June 29, 2010 3:05 PM
  • Be sure you have the April 2010 release of the Silverlight 4 Toolkit installed. This is not the same as the Silverlight Tools for Visual Studio 2010, its a separate package you get here:

    This is the most common cause of this error message.

    Let me know if that doesn't help.

    Tuesday, June 29, 2010 4:03 PM
  •  It works !


    I just have forget to reinstall the toolkit after Windows reinstallation.


    Thank you.

    Tuesday, June 29, 2010 4:28 PM