Xamarin Forms Update Button Text Code

[Solved] Xamarin Forms Update Button Text Code | Swift - Code Explorer | yomemimo.com
Question : Xamarin Forms Update Button Text Code

Answered by : frightened-ferret-sz09pu1xnwod

private async void Btn1_Clicked(object sender, EventArgs e)
{ var btn = (Button)sender; btn.Text = "Wait"; ...some code...maybe async or not (take out async above if not) Device.BeginInvokeOnMainThread(() => { btn.Text = "Do Something"; });
}

Source : https://stackoverflow.com/questions/40534032/xamarin-forms-change-text-of-button-while-wait?rq=1 | Last Update : Tue, 22 Feb 22

Answers related to xamarin forms update button text code

Code Explorer Popular Question For Swift