private async void NativeButtonClick(object sender, EventArgs e) { _nraViewModel.Notify = (object bindingInfo) => { InvokeOnMainThread(() => { var str = (string)bindingInfo; NativeTextView.Text = str; }); }; await _nraViewModel.RetrieveNameAsync(); }
private async void NativeButtonClick(object sender, EventArgs e) { _nraViewModel.Notify = (object bindingInfo) => { RunOnUiThread(() => { var str = (string)bindingInfo; var ed = FindViewById <EditText>(Resource.Id.editText1); ed.Text = str; }); }; await _nraViewModel.RetrieveNameAsync(); }