A Microsoft framework for building cross-platform mobile apps using .NET and C# with native performance and user interfaces.
Hello,
Welcome to Microsoft Q&A!
You update the value with Preferences , but this will not trigger the change notify of Property Total in Page2ViewModule.
Total does not update , so the Label(or something else) does not update .
We should take a way to tell Total it should be changed after button clicking .
Here I suggest you use Messaging Center , I've mentioned it in this thread .
Here we just move the messaging center into Set method of the property .
set
{
MessagingCenter.Subscribe<object>(this, "Hi", (o) => {
OnPropertyChanged(nameof(Total));
});
}
If you have any question please let me know .
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.