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

images from database

8 Answers 159 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
Levente Mihály
Top achievements
Rank 1
Levente Mihály asked on 18 Nov 2008, 08:40 AM
Hi,

maybe it's a basic question, but i can't figure it out. I'm loading my images from database, receiving byte arrays, and converting them to first BitmapImages then to Images. Now i have a List<Image> collection, and i want to set this collection as source for the CoverFlow. When i do this, every time only the default "loading" image appears.
I tried: coverFlow.ItemsSource = imageList; and also coverFlow.DataContext = imageList (and setting ItemsSource to {Binding}.
So, what am i missing, how can i display these images?

thanks,
 Levente

8 Answers, 1 is accepted

Sort by
0
Serrin
Top achievements
Rank 1
answered on 18 Nov 2008, 08:51 PM
Hi Levente,

Have you tried loading the images into an ObservableCollection<T> like in this demo:

http://demos.telerik.com/silverlight/#CoverFlow/ItemsSource

Also, how are you retrieving the images from the database?  I know when I was working on something similar through WCF I was having a problem with my webservice that was screwing up my result and not giving me any usable pictures. :)
0
Miroslav Nedyalkov
Telerik team
answered on 18 Nov 2008, 09:27 PM
Hi Levente Mihály,

The coverflow waits for the images to load and then it switches the loading image with the real one. In your case the event of the BitmapImage - DownloadProgress is not fired at all, because the data is already downloaded. We will fix this for service pack 2 (at the middle of December). Let us know if you need the fix earlier.

Best wishes,
Miroslav Nedyalkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Levente Mihály
Top achievements
Rank 1
answered on 19 Nov 2008, 01:28 PM
Thank you for your answer.

If it's possible we would be happy to have the fix by the end of November.

Thanks again,
 Levente

0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 20 Nov 2008, 04:09 PM
Hello Levente Mihály,

We will address the issue with the service pack(mid of December). I hope this timeframe is acceptable for you. If a fix is ready prior to the SP1 release date, we will send it to you right away.

All the best,
Miroslav Nedyalkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Levente Mihály
Top achievements
Rank 1
answered on 21 Nov 2008, 09:05 AM
Yes, thank you, that'll be fine.

Regards,
 Levente
0
Levente Mihály
Top achievements
Rank 1
answered on 18 Dec 2008, 11:22 AM
So, when the service pack will be released (with the fix for this problem)?
0
Miroslav Nedyalkov
Telerik team
answered on 19 Dec 2008, 12:02 PM
Hello Levente Mihály,

We released the SP2. As soon as you download service pack 2 of RadControls for Silverlight your problem will be fixed.

Sincerely yours,
Miroslav Nedyalkov
0
Levente Mihály
Top achievements
Rank 1
answered on 19 Dec 2008, 12:17 PM
Thanks!
Tags
CoverFlow
Asked by
Levente Mihály
Top achievements
Rank 1
Answers by
Serrin
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
Levente Mihály
Top achievements
Rank 1
Share this question
or