示例#1
0
        private async void NativeButtonClick(object sender, EventArgs e)
        {
            _nraViewModel.Notify = (object bindingInfo) =>
            {
                InvokeOnMainThread(() =>
                {
                    var str             = (string)bindingInfo;
                    NativeTextView.Text = str;
                });
            };

            await _nraViewModel.RetrieveNameAsync();
        }
示例#2
0
        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();
        }