title: Changing button content on click event function does not work c#
body: <p>Sooo my problem is as follow, I am running a function on button click event, I want to simply change the button content to show the end user that stuff is busy loading but running some code in the function aswell makes it becoming &quot;unresponsive&quot; in a way, I did some research and tried <code>async void</code> and <code>await</code> and did not work, this is an example of my code:</p>
  <pre><code>private void Clicked_Example(object sender, RoutedEventArgs e)
  {
      button1.Content = &quot;Loading...&quot;;   //I need this to be shown before proceeding...
  
      //Sooo here I am running some MySQL queries and Mqtt messages and... uhhm well the random usual stuff...
  
      button1.Content = &quot;Done!&quot;;    //I need this then to be changed after
  }
  </code></pre>
  <p>Sad to say but I'm not much experienced in updating the UI from threads.
  Please any help will be much appreciated, thanks!</p>