Stream image source causes coverflow to be static

2 posts, 0 answers
  1. Aaron
    Aaron avatar
    20 posts
    Member since:
    Oct 2012

    Posted 06 Jun 2011 Link to this post

    I'm using stream images and an ItemTemplate to display thumbnails for documents retrieved from a service. What I have is this:

    <Grid Height="150">
      <telerik:RadCoverFlow ItemsSource="{Binding Thumbnails}" x:Name="DocumentCoverFlow" OffsetY="25"
            CameraViewpoint="Center" ItemScale="0.75" RotationY="60" ReflectionHeight="0.25" ReflectionOpacity="3"
            DistanceBetweenItems="20" DistanceFromSelectedItem="-5" >
        <telerik:RadCoverFlow.ItemTemplate>
          <DataTemplate>
            <Image Source="{Binding}" Width="100" Height="100" Stretch="Uniform" telerik:RadCoverFlow.EnableLoadNotification="False"></Image>
          </DataTemplate>
        </telerik:RadCoverFlow.ItemTemplate>
      </telerik:RadCoverFlow>
    </Grid>

    All my images show up and it looks great. The problem I'm having is that clicking on various items to the left and the right doesn't change the selection. Once it's loaded it might as well be a static rendering because it does absolutely nothing. Any idea what I'm missing?
  2. Aaron
    Aaron avatar
    20 posts
    Member since:
    Oct 2012

    Posted 06 Jun 2011 Link to this post

    Nevermind, it appears that in my thumbnail generation code I had a scope issue. I was unintentionally reusing the object that created the image source and it was generating duplicate thumbnails due to its asynchronous nature. I'm not sure how that causes the CoverFlow to not want to select items but when I fixed the issue of getting duplicate thumbnails the navigation issue disappeared completely and it works exactly how it should.
  3. DevCraft banner
Back to Top