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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:55:46+00:00 2026-05-28T06:55:46+00:00

Scenario: I start out in my app’s main page. I navigate to sub-page A,

  • 0

Scenario: I start out in my app’s main page. I navigate to sub-page A, change a value, hit the back button and the bound TextBlock in the main page doesn’t change. If I navigate to sub-page B, a TextBlock using that same binding changes. Likewise, if I go to page A again I see the changed value. If I exit the app, the new value shows up on the main page. It’s just when using the back button that a refresh doesn’t get triggered.

I’ve got all my INotifyPropertyChanged stuff working. Like I said, the binding works in every scenario besides navigating back to the main page. How do I send a message or otherwise trigger a refresh of the bindings on that page? Thanks!

Edit:

Based on the accepted answer from willmel, here’s what I did:

My MainPage.xaml file has this markup:

<TextBlock Text="{Binding Title, Mode=OneWay}" />

My MainViewModel.cs file has this:

       public string Title
    {
        get { return ProfileModel.Instance.DescriptionProfile.Title; }
    }

And I added this to the MainViewModel constructor:

Messenger.Default.Register<PropertyChangedMessage<string>>(this,
        (action) => DispatcherHelper.CheckBeginInvokeOnUI(
        () => RaisePropertyChanged("Title")));

In another view I have the following markup:

<TextBox Grid.Row="1" Width="250" Height="100" Text="{Binding TitleEdit, Mode=TwoWay}" />

In its view model I use this when getting/setting a string:

        public string TitleEdit
    {
        get { return ProfileModel.Instance.DescriptionProfile.Title; }

        set
        {
            if (ProfileModel.Instance.DescriptionProfile.Title == value) return;

            string oldValue = ProfileModel.Instance.DescriptionProfile.Title;


            ProfileModel.Instance.DescriptionProfile.Title = value;

            RaisePropertyChanged("Title", oldValue, value, true);
        }
    }
  • 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-28T06:55:47+00:00Added an answer on May 28, 2026 at 6:55 am

    In your view model you want to be modified if a child page changes a property. (note here, the property is of type bool, but could be anything)

      Messenger.Default.Register<PropertyChangedMessage<bool>>(this,
        (action) => DispatcherHelper.CheckBeginInvokeOnUI(
       () =>
          {
             MessageBox.Show(action.newValue.ToString());
             //do what you want here (i.e. RaisePropertyChanged on a value they share)
         }));
    

    When you use RaisePropertyChanged in the child class, use the broadcasting overload.

    RaisePropertyChanged("Preference", oldValue, value, true);
    

    Finally, note that to use DispatcherHelper, you need to Add the following to your App constructor (App.xaml.cs)

    DispatcherHelper.Initialize();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Past scenario - Work with Tomcat and start in debug mode and Remote Debug
Scenario: The agent listens to a certain address/port during start up. When server started,
Scenario I've created a windows service, but whenever I start it, it stops immediately.
I have a scenario where a user submits a start and stop date for
Here's the scenario: I'm an SSIS virgin, but I found an excuse to start
My goal is to return a start and end date having same value in
Take this scenario: I decide to 'fork' a codebase on github.com, and start doing
I've got a scenario that you can envision this way: Start off with an
So I have a scenario: Using System.currentTimeMillis() I get the initial start time of
I am facing a strange scenario. basically on my every web page i am

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.