when I am trying to change values of variable in
GalaSoft.MvvmLight.Messaging.Messenger.Default.Register<status>(this, async Status=>
{
this.txt1.text = "Hi"
});
I am really confused on how to deal with this error
You can only update the UI from the main UI thread. In order to do so you need to use the Device.BeginInvokeOnMainThread method to invoke the update to the UI on the UI thread. Like so:
Each platform has it's own native method to invoke on the UI Thread. In WinPhone: