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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:30:39+00:00 2026-06-04T19:30:39+00:00

In my windows phone 7 application, i have created a button to change the

  • 0

In my windows phone 7 application, i have created a button to change the default background image and the users can have their own custom skins on the app. It worked perfectly. But when the users exits the app and relaunches it again the application’s background image is changed to default. But what i needed is, the application should have the last image that is chosen by the user even is launched no. of times. Can anyone help me with this? Thanks in advance for your hard work!

private void BackgroundBrowserIcon_MouseEnter(object sender, MouseEventArgs e)
    {
        var PhotoChooser = new PhotoChooserTask();
        PhotoChooser.Completed += new EventHandler<PhotoResult>(PhotoChooser_Completed);
        PhotoChooser.Show();
    }

    void PhotoChooser_Completed(object sender, PhotoResult e)
    {
        {
            if (e.TaskResult == TaskResult.OK)
            {
                System.Windows.Media.Imaging.BitmapImage bmp = new System.Windows.Media.Imaging.BitmapImage();
                bmp.SetSource(e.ChosenPhoto);
                var app = Application.Current as App;

                if (app == null)
                    return;
                var imageBrush = new ImageBrush { ImageSource = bmp, Opacity = 1.0d };
                this.LayoutRoot.Background = imageBrush;
                app.backchanged = true;
                app.appbrush = imageBrush;
            }
        }
    }
  • 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-04T19:30:40+00:00Added an answer on June 4, 2026 at 7:30 pm

    Are you using IsolatedStorageSettings to store the last chosen photo, and then loading it on app launch?

    Update:
    Check out this post, as it explains how to code exactly what you are looking to accomplish: http://www.windowsphonegeek.com/tips/All-about-WP7-Isolated-Storage—Read-and-Save-Captured-Image

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

Sidebar

Related Questions

I have created a Windows Phone 7.5 Silverlight application. Most of the design and
My app is a windows phone 7 application. In that i have created a
For a Windows Phone 7 app, I have created an application bar which is
I have created a windows phone 7 custom class library, in that I have
I have created windows phone gap application. In that it internally uses browser called
In my windows phone 7 application, i have created a grid(named as Holder ),
I have a windows phone application and I need to add a user control
iHi, in my Windows Phone application in View I have: <TextBlock x:Name=lblink FontSize=15 Margin=30,0,24,0
All, I have a basic Windows 7 Phone application and I have just finished
Thanks in advance.. I have a windows phone application. In that I am showing

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.