This is a migrated thread and some comments may be shown as answers.

Binding identical images to Coverflow

1 Answer 43 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
koen
Top achievements
Rank 1
koen asked on 18 Feb 2011, 07:40 AM
I have a coverflow binded to a List of Images and when there are identical images in the List the Coverflow isn't working correctly anymore. The naviagtion seems to be corrupted by the identical images.

The ImageList contains for instance:

imageList[0] = http://tile.openstreetmap.org/14/8451/451.png

imageList[2] =  http://tile.openstreetmap.org/14/8451/451.png

The code:

liProjecten = new List<ListProject>();
ObservableCollection<string> imageList = new ObservableCollection<string>();
foreach (var kvb in e.Result.Reverse()) //Loop through reverse, so the last projects get on top of the list
{
    liProjecten.Add(
        new ListProject()
        {
            Id = kvb.Id,
            Name = kvb.Naam,
            imgSource = kvb.ImageUrl,
            LastModifiedDate = kvb.LastModifyDate
        });
    imageList.Add(kvb.ImageUrl);
}
CoverFlow.ItemsSource = null;
CoverFlow.ItemsSource = imageList;
CoverFlow.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(CoverFlow_SelectionChanged);
//Set default selected project
if (imageList.Count != 0)
{
    CoverFlow.SelectedIndex = 0;
}

Is there a solutions for this problem?

Kind regards,

Koen Meijer

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 23 Feb 2011, 10:32 AM
Hello,

 
We are aware of this problem. Unfortunately, this is a bug in the ListBox control and we can't do anything at this stage. I would suggest you to workaround the issue using the BitmapImage class. Please, refer to the attached project.

I hope this helps.

All the best,
George
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
CoverFlow
Asked by
koen
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or