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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:14:01+00:00 2026-05-19T01:14:01+00:00

Well I’ve looked up several methods to fix this in my Windows Phone 7

  • 0

Well I’ve looked up several methods to fix this in my Windows Phone 7 app but I can’t seem to find anything that works. What confuses me is that I’ve done something just like this before with no problem, so I’m not sure why it’s not working. The code causing me the problem is this:
if (appSettings.Contains(“image”))
myImage.Source = (string)appSettings[“image”];
else
myImage.Source = “default.jpg”;

The error I get is this

Cannot implicitly convert type ‘string’ to ‘System.Windows.Media.ImageSource.

The reason this confuses me is because I did this Twitter app tutorial, in which you bind the image source directly to a string. So what can I do to fix this?

  • 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-05-19T01:14:02+00:00Added an answer on May 19, 2026 at 1:14 am

    You need to specify an ImageSource instead of a string when doing it from code:

    Uri uri = new Uri("...", UriKind.Absolute); 
    ImageSource imgSource = new BitmapImage(uri); 
    myImage.Source = imgSource; 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well, it seems simple enough, but I can't find a way to add a
Well, first I know that this question was already asked several times. But I
Well, I was trying to fix this program, and I keep getting the errors
Well,This thing has bugged me for days. I have developed an app that checks
well I'm starting to understand Android Fragments but this is still confusing for me.
Well I think this is kinda dumb but, I wonder if there's any way
Well friends, I have got this query which works but is very long for
Well as weird as it sounds it's that simple. i can't understand why but
Well, my website can not redirect to https://www.facebook.com/QuaFootSpa from http://quafootspa.com/ I have tried redirection
Well I can start the thread when I press togglebutton to ON and it

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.