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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:39:23+00:00 2026-05-26T05:39:23+00:00

Okay, I’m attempting to load an image to an Image control on my page.

  • 0

Okay, I’m attempting to load an image to an Image control on my page. Now as far as I know, I know how to do this (the method I’m using has worked before). But for some reason it’s not working this time. The image is not being loaded.

Okay, let’s start with the XAML. You can see it here.. Please note my excellent artistic skills. You can see that the top image is the left one on the screen and the bottom image is the right one. As you can also see, the image on the right is loaded in the XAML from a file in the Assets/Images folder. It should also be noted that we can take from this that the image loads okay – there aren’t errors with the image. We can also see that the images are not blocked by anything (when the program runs, the right image shows just fine).

So the left image, ‘image1’ is the one that I’m loading from the code behind. Here is the code behind for that page. As you can see, there’s not a lot. Yes I do use a view model, but it doesn’t interface with the image at all (its only exposed properties are an Entity (for a selected item) and an ObservableCollection of entities (for the ItemsSource of a control)). As you can also see, I’m attempting to load the same image as is used for the static image (so I can say for sure that the image is okay for Silverlight).

If you’re wondering about the BitmapCreateOptions line, that was something that someone suggested to me to add. I have tried removing it, but that doesn’t seem to cause any difference.

The next question is – have I attempted to use the event handler for the failure? Yes I have. The error I get is ‘AG_E_NETWORK_ERROR’.

I’m not sure what exactly this is about – I’m not loading from a network.

Can anyone offer assistance? Thanks.

  • 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-26T05:39:24+00:00Added an answer on May 26, 2026 at 5:39 am

    I can’t help but notice that in your XAML, you have a “../” at the start of the image path, but this is missing from the path you’re using in code-behind. Could this be the problem?

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

Sidebar

Related Questions

Okay, I really know this has GOT to be the long way around doing
Okay this question is very simple: I have a facebook page, and a website.
Okay - I have a dilemma. So far my script converts page titles into
Okay I know right off the bat this is going to be a stupid
Okay, I know you can override the to_xml method for a single instance of
Okay I am ripping my hair out over this and I know it is
Okay, this is driving me nuts. I am using canvas to draw a gauge
Okay, bear with me on this, I know it's going to look horribly convoluted,
Okay so I can't figure this out. Like a file that I using grep
Okay, so I know that using eval() isn't great, but I haven't been able

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.