none
Can't databind XAMl <Image Source> to Image object RRS feed

  • Question

  • If I have a property of type image in a custom class how can i set this image property to a XAML <Image>? My image property is made on the fly and doesnt have a URI... Doing <Image Source={Binding Path=ImagePropertyOfClass}>  does NOT work. 

    I tried a custom convertor based on previous postings here, but it also doesnt work because there is no uri of the image object.

    Please help, thanks! :)

    Wednesday, January 10, 2007 10:20 PM

Answers

All replies

  • What is the exact type of ImagePropertyOfClass?  This property must be of a type which derives from ImageSource, since this is the type of Image.Source - typically (for raster images) this will be BitmapImage.

    -Adam Smith [MSFT]

    Thursday, January 11, 2007 12:09 AM
    Moderator
  • Please let us know if there's more we can help you with on this.

    Monday, April 30, 2007 6:33 AM
    Moderator