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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:11:09+00:00 2026-05-24T04:11:09+00:00

I have a page in my windows phone 7 app. This page sets it’s

  • 0

I have a page in my windows phone 7 app. This page sets it’s background color to a StaticResource which is dynamically added based on a settings option.

Now the problem is this: Let’s say page is now white, I go to settings and choose background black from this page and click OK to go back (and of course reset static resources on App.xaml). When I go back to main page because application has this page already on memory it still will have white background.
I can confirm that settings is saved correctly because when I exit and come back it works perfectly.

How can I invalidate rendering state of a silverlight page? Or maybe how can I tell silverlight don’t keep page on navigation.back() and always create a fresh version?

I found some InvalidateXXX() method on UIElement but they seemed irrelevant.

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-24T04:11:10+00:00Added an answer on May 24, 2026 at 4:11 am

    I am guessing you are removing and re-adding the App resource? If so, the StaticResource binding is still referencing the previous instance of that named brush from App.xaml. I gather StaticResource bindings do no respond to a change of key, only to INotifyPropertyChanged events.

    Try changing the color value of the existing brush resource instead of replacing the brush e.g.:

    (Application.Current.Resource["myColor"] as SolidColorBrush).Color = Colors.Red;
    

    The Color property of a brush is a dependency property, so the change should update everywhere.

    *Note: I can only test this with SL and not WP7 as the machine here is Win server 2003

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

Sidebar

Related Questions

For my Windows Phone 7 app, I have a main panorama page which opens
I'm developing a Windows Phone application . I have defined this on App.xaml: <nav:UriMapping
I have created a few ResourceDictionaries in my Windows Phone app and I added
For a Windows Phone 7 app, I have created an application bar which is
Im building an app for Windows phone 7. I have a panorama page with
I have a ListBox in a xaml page for a Windows Phone 7 app.
I have a slider element in my windows phone app which has min value=1
My windows phone app is freezing while loading the main page. I have set
I am trying to make an windows phone application.... in this app I have
I have a page in a Windows Phone 7 app where the user can

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.