Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7780107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:48:46+00:00 2026-06-01T18:48:46+00:00

I ran into a special behavior when binding to the Source property of an

  • 0

I ran into a special behavior when binding to the Source property of an Image, using a converter.

It appears that if I use a simple Binding with a IValueConverter that returns a string correpsonding to a relative path to the image, everything is OK and the image is displayed.

On the other hand, if I use a MultiBinding with a IMultiValueConverter that returns the same string, the binding doesn’t work and this error message is displayed in VS2010 output window :

System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value=” MultiBindingExpression:target element is ‘Image’ (Name=”); target property is ‘Source’ (type ‘ImageSource’)

I found out that for this to work, I can’t return a simple string (and not even a Uri). I instead have to create a ImageSource in my converter (a BitmapImage, in fact) and return it.

Do you know why this strange behavior happens? Is this a known difference between Binding and MultiBinding, or is it a bug?

I found another stackoverflow topic that may relate to this, where Alvin posted a comment about the time when the binding are resolved :

I think that MultiBinding is made AFTER TextBlock rendering, and (single)Binding BEFORE TextBlok rendering – Avlin

To Illustrate this problem, I wrote a small project that you can download and test.

Thanks for any insights!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T18:48:47+00:00Added an answer on June 1, 2026 at 6:48 pm

    I would assume that this is by design but to be sure you would need to ask one of the developers, the difference is just that no type conversion is applied to the values returned by MultiBindings, people trip on that fairly often.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I ran into an interesting dilemma today. I have a function that handles information
I ran into something that I never thought of before and it stumped me.
I've recently ran into a bit of a pain. I've been using the JQuery
Ran into an issue today that I have not been able to resolve. I
I ran into the problem that my primary key sequence is not in sync
I ran into a bug I have trouble explaining. Now that I found the
I ran into a case using Happy (a Haskell parsing package) where the order
as I use Node.js for not too long time yet, I've ran into a
I ran into an issue that I've been researching for hours to no avail.
Ran into an issue with a class; I have a class that looks like:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.