How to update preferences within the same app session

Jon 1 Reputation point
2021-04-08T16:05:16.873+00:00

I've created a settings page within xamarin on my code behind that works just fine to update preferences when the app restarts. The purpose of this is to change the language of the app according to the bool value saved by the preference. It works great between app sessions (closing and restarting the app). However, I can't seem to get it to update within the SAME app session. Example, you tap the switch and everything changes to spanish instantly without the app needing to restart.

See attached for code.85902-code.txt

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
{count} votes