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 7788449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:00:22+00:00 2026-06-01T21:00:22+00:00

i cant bind an image to source from converter? <!– Works fine –> <Image

  • 0

i cant bind an image to source from converter?

<!-- Works fine -->
<Image Grid.Row="0" Grid.Column="4" Grid.RowSpan="6" Margin="5">     
      <Image.Source>
          C:\pictures\Becker.png
      </Image.Source>
</Image>


<!-- Works not -->
<Image Source="{Binding ClientPicture, Converter={StaticResource clientpictureconv}, ConverterParameter={Binding ClientNumber}}"/>

In the converter i give back the hardcoded picture Uri (from the top). If i replace the Image with Textblock, the full uri is shown. But the picture in Image not.

What can i do?

  • 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-01T21:00:24+00:00Added an answer on June 1, 2026 at 9:00 pm

    That’s because Image.Source does not take a URI object; it takes an ImageSource object. Your converter should create one of those and pass it back. Put this in your converter, and it’ll work:

    return new BitmapImage(myUri);
    

    Note that BitmapImage is a type of ImageSource.

    Your first example works because XAML implicitly converts the URI string to an ImageSource for you. It can’t do that when you explicitly pass back a URI object using your converter.

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

Sidebar

Related Questions

$(window).bind(beforeunload,function(){ return cant be seen in ff; }); The problem is that i can't
I need to bind to a Storyboard, but I cant figure how. I have
I have successfully managed to bind images stored in Isolated Storage to Image elements
I can't seem to bind a single GridView's row to a DetailsView properly. Currently
I'm trying to databind a list of image thumbnails in a grid fashion. In
can't make my background image' position animate $(function() { $('#nav1').bind('click',function(event){ $('ul.nav').stop().animate({backgroundPosition: 'right top'}, 1000);
This question (along with its answer) explains why you can't easily bind a DataGridView
Cant seem to get the following to find the 'skull' button when the 'heart'
I cant post the code (proprietary issues) but does anyone know what types of
I cant seem to find much info on haskells layout features, as I understand

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.