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

Image Binding & IValueConverters

1 Answer 84 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
glen
Top achievements
Rank 2
glen asked on 21 Apr 2009, 08:50 AM
Dear Telerik,

I have an ObservableCollection that I am trying to bind the RadCoverflow to. Part of the class is a Thumbnail byte array

I have tried binding as follows :
coverflow.ItemsSource = POIResults;  where POIResults is ObservableCollection<POI>

then in the XAML I try DIsplayMemberPath={Binding Path=Thumbnail, Converter={StaticResource myImageConverter}}

the IValueConverter returns a BitmapImage.

However I am just getting the default Loading Image - what am I doing wrong - it's probably something obvious?

cheers

Glen

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 21 Apr 2009, 12:02 PM
Hi glen,

Unfortunately, the DisplayMemberPath is a string property, not a binding. It creates a binding internally, but you don't have control of the value converter it uses. You should have the image directly as a property of the data object and to set as display member path just the name of the property. Hope this information helps.

Kind regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
Tags
CoverFlow
Asked by
glen
Top achievements
Rank 2
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or