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

ItemSource Re-Binding issue

1 Answer 45 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
john
Top achievements
Rank 1
john asked on 04 May 2010, 10:05 PM
I have a weird problem binidng with the cover flow control.
I am new Silverlight and am wondering if I'm not doing something correct.

I have two collecitons of string paths to images.
I'm attempting to have the CoverFlow.ItemSource = XXXX   change according to a button click event.
Between different buttons I'd like to toggle the ItemSource between my museumCollection and residentialCollection




Which ever button I click first link, which ever of the two, certainly works, and the Coverflow shows the first item colleciton's Images.
However, when I click the second link, after clicking the first link, the entire page goes white.

Shortened Example code below.

        private ObservableCollection<string> museumCollection = new ObservableCollection<string>();          
              museumCollection.Add("_images/Galleries/GalleryFiles/Museum_Stadium/1.jpg");
              museumCollection.Add("_images/Galleries/GalleryFiles/Museum_Stadium/2.jpg");
             museumCollection.Add("_images/Galleries/GalleryFiles/Museum_Stadium/3.jpg");
   
     private ObservableCollection<string> residentialCollection = new ObservableCollection<string>();           
            residentialCollection.Add("_images/Galleries/GalleryFiles/Interiors/0.jpg");
            residentialCollection.Add("_images/Galleries/GalleryFiles/Interiors/1.jpg");
            residentialCollection.Add("_images/Galleries/GalleryFiles/Interiors/2.jpg");

       private void MuseumClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {               
            this.Cover_Flow1.ItemsSource = museumCollection;               
        }
       
        private void ResidentialClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {               
            this.Cover_Flow1.ItemsSource = residentialCollection;   
        }

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 10 May 2010, 09:38 AM
Hello john,

We are unable to reproduce this error.
Could you tell us the exact version of the assemblies you are using and which Silverlight version (3 or 4)?

Regards,
Hristo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
CoverFlow
Asked by
john
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or