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:
Is there a solutions for this problem?
Kind regards,
Koen Meijer
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