4

I am building my first app in windows phone 7. I have an image which i am loading from backoffice. my XAML code is

<Button Click="Image_Click" Name="image1" Margin="-33,-16,-26,-13">
            <Button.Background>
                <ImageBrush Stretch="Fill" ImageSource="http://political-leader.vzons.com/ArvindKejriwal/images/icons/landing.png"/>
            </Button.Background>
        </Button>

This is a clickable image which when clicked navigates to another page.

Now as the image is coming from the web, i want this image to be viewed the next time even while in offline mode. Can anyone help me how to do this

kyrylomyr
  • 12,192
  • 8
  • 52
  • 79
bhaku
  • 438
  • 4
  • 18

1 Answers1

1

It seems that the accepted answer on this question is what you need: Image Source and Caching

When I was facing the problem myself, I did it the hard/manual way - downloaded the images myself, cached them on the file system and referenced them from there. The proposed answer seems to provide an easier way.

EDIT: The question relates to Windows Phone 8, but it looks like it applies to Windows Phone 7.5 (otherwise known as Mango). Don't know about 7, but you should be targeting 7.5 anyway (there are no phones that cannot be upgraded to 7.5)

Community
  • 1
  • 1
Ronald Zarīts
  • 11,819
  • 8
  • 39
  • 42