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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:58:51+00:00 2026-05-23T21:58:51+00:00

I need to bind images located in isolated storage – I found one answer

  • 0

I need to bind images located in isolated storage –
I found one answer here and it seems my situation
Binding image in Isolated Storage

But then this person has switched to the another solution and used ClientBin for image storage. My pictures will be different all the time.
Now I use images from the server, but I need to save them to the isolated storage and bind to the listBox
code in XAML:

Image Width="110" CacheMode="BitmapCache" Source="{Binding ThumbURL}"

code behind:

public string ThumbURL
    {
        get
        {
            return String.Format("http://localhost:3041/Pictures/thumbs/{0}.jpg", _ID);
        }
        set
        {
            this.OnThumbURLChanging(value);
            this._ThumbURL = value;
            this.OnThumbURLChanged();
            this.OnPropertyChanged("ThumbURL");
        }
    }

Can anyone advice me of how to do it? I’ll be really, really grateful.

Please post some example of the code.

  • 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-23T21:58:52+00:00Added an answer on May 23, 2026 at 9:58 pm

    To download pictures from the web see this previous SO question – how-can-i-download-and-save-images-from-the-web.

    The difference with binding an image in Isolated Storage is that you have to bind to a BitmapImage object which you initialise from your bound code object. I’ve renamed your property to “ThumbImage” from “ThumbURL” to show the difference.

    So in XAML:

    Image Width="110" CacheMode="BitmapCache" Source="{Binding ThumbImage}"
    

    And in your bound object – assuming this picture doesn’t change – if it does you’ll have to raise the property changed event as appropriate. (code edited to deal with class serialization issue).

    private string _thumbFileName;
    public string ThumbFileName
    {
        get
        {
            return _thumbFileName;
        }
        set
        {
            _thumbFileName = value;
            OnNotifyChanged("ThumbFileName");
            OnNotifyChanged("ThumbImage");
        }
    }
    
    [IgnoreDataMember]
    public BitmapImage ThumbImage 
    { 
        get 
        { 
            BitmapImage image = new BitmapImage();                    
            IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication();
            string isoFilename = ThumbFileName;
            var stream = isoStore.OpenFile(isoFilename, System.IO.FileMode.Open);
            image.SetSource(stream);
            return image;
        }     
    }
    
    public event PropertyChangedEventHandler PropertyChanged;
    
    private void OnNotifyChanged(string propertyChanged)
    {
        var eventHander = PropertyChanged;
        if (eventHander != null)
        {
            PropertyChanged(this, new PropertyChangedEventArgs(propertyChanged));
        }
    }
    

    (Edited to add link to how to download image in the first place)

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

Sidebar

Related Questions

I have a situation where I need to bind a click event to an
I'm building a Silverlight 2 application and I need to bind some images to
I am binding some click events to some images I have.When one of them
I have multibinding on Image control. I bind two properties one is type of
I need to bind the image source that defined in code behind into ControlTemplate.
i need to bind an image on run time in code behind thing is
I have a table with image field that I need to bind to System.Windows.Forms.PictureBox,
I need to bind a mouse event to an area of an image. Just
I need to bind labels or items in a toolstrip to variables in Design
I need to bind the column Header text of a DataGrid to a Resource

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.