Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1564
XamCarouselPanel has encountered a child element that is not a CarouselPanelItem.
posted

Hi,

Since I use the new version of the WPF controls (2008 - 01) I have a bug that appear. It say "XamCarouselPanel has encountered a child element that is not a CarouselPanelItem."

It is important to note that if I have :

 

<igDP:XamDataPresenter
              x:Name="xdpGraphicalView"
              View="{DynamicResource xdpGraphicalView_CoverListView}" ....

 where "xdpGraphicalView_CoverListView" is the default view, all is fine. The problem occur when I try to change the view.

Here is the code I use :

xdpGraphicalView.View = (Infragistics.Windows.DataPresenter.ViewBase)FindResource("xdpGraphicalView_CoverListView");

Here is the definition of the view :

     <igDP:CarouselView x:Key="xdpGraphicalView_CoverListView">
        <igDP:CarouselView.ViewSettings>
            <igWindows:CarouselViewSettings
              ItemPathAutoPad="False"
              ItemPath="{StaticResource HorizontalPath}"
              ItemSize="100, 100"
              ItemPathPrefixPercent="0.1"
              ItemPathSuffixPercent="0.1"
              ItemPathPadding="0,0,0,0"
              AutoScaleItemContentsToFit="True"
              ReserveSpaceForReflections="True"
              UseScaling="False"
              UseZOrder="False">

                <igWindows:CarouselViewSettings.ZOrderEffectStops>
                    <igWindows:ZOrderEffectStopCollection>
                        <igWindows:ZOrderEffectStop Offset="0.0" Value="0"/>
                        <igWindows:ZOrderEffectStop Offset="0.5" Value="1.0"/>
                        <igWindows:ZOrderEffectStop Offset="1.0" Value="0"/>
                    </igWindows:ZOrderEffectStopCollection>
                </igWindows:CarouselViewSettings.ZOrderEffectStops>

                <igWindows:CarouselViewSettings.ScalingEffectStops>
                    <igWindows:ScalingEffectStopCollection>
                        <igWindows:ScalingEffectStop Offset="0.0" Value="1"/>
                        <igWindows:ScalingEffectStop Offset="1.0" Value="1"/>
                    </igWindows:ScalingEffectStopCollection>
                </igWindows:CarouselViewSettings.ScalingEffectStops>

            </igWindows:CarouselViewSettings>
        </igDP:CarouselView.ViewSettings>
    </igDP:CarouselView>

 

Parents
No Data
Reply
  • 1564
    posted

     I have find a solution, but it is not elegant! I must re-bind the XamDataPresenter !

    Like this :

    xdpGraphicalView.DataSource = null;

    xdpGraphicalView.View = (Infragistics.Windows.DataPresenter.ViewBase)FindResource("xdpGraphicalView_CoverListView");

    xdpGraphicalView.DataSource = GraphicalGroupManager.Items;

    Another problem :

    When I bind a lot of items, it is VERY VERY VERY slow !!!! My application really face a performance problem with the new version.

    Here is the definition of my XamDataPresenter:

    <igDP:XamDataPresenter
                  x:Name="xdpGraphicalView"
                  View="{DynamicResource xdpGraphicalView_CoverListViewDeep}"
                  RecordContainerGenerationMode="LazyLoad"
                  IsGroupByAreaExpanded="False"
                  IsNestedDataDisplayEnabled="True"
                  GroupByAreaLocation="None"
                  SelectedItemsChanged="xdpGraphicalView_SelectedItemsChanged"> ....

Children
No Data