Image Binding & IValueConverters

2 posts, 0 answers
  1. glen
    glen avatar
    8 posts
    Member since:
    Jun 2008

    Posted 21 Apr 2009 Link to this post

    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?



  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 21 Apr 2009 Link to this post

    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.
Back to Top