locked
Silverlight Business App 4 and the PivotViewer fails RRS feed

  • Question

  • Opened a new SL Business app  and attempted without success to add the PivotViewer control to the Home page.

    Added the  CustomPivotViewer.cs from the PivotViewerSample and the following with code behind,

     

    <navigation:Page x:Class="mytest.Home" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:mytest.Helpers"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"

    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480" xmlns:my="clr-namespace:mytest.Controls">

    <Grid x:Name="LayoutPivotViewer">

    <!--The PivotViewer control-->

    <local:CustomPivotViewer x:Name="PivotViewer"

    LinkClicked="PivotViewer_LinkClicked"

    ItemDoubleClicked="PivotViewer_ItemDoubleClicked"/>

    </

    </Grid>navigation:Page>

     

    Whenever the Home page is called the exception thrown is "Error HRESULT E_FAIL has been returned from a call to a COM component."

     

    Any suggestions are appreciated.

    Monday, July 19, 2010 3:23 AM

All replies