title: How can a thread update a textbox in the page form that is part of the main thread?
body: <p>I'm creating a UWP APP to receive the data from ADC board, I was used WindForm to develop it, it can work, but because UWP doesn't support using Control.Invoke  look through the papers, but I still have no idea how can I start, how can I convert the windform code to UWP code?</p>
  
  <p>The windform code as below</p>
  
  <pre><code> public async Task StartProcess()
  
          {
              IsCancelled = false;
              Task t = new Task(() =&gt;
              {
                  while (IsCancelled == false)
                  {
                      I = I + 1;
                      SetTextBox(I);
  
                  }
              });
              t.Start();
          }
  
       public void SetTextBox(int _Val)
      {
          if (InvokeRequired)
          {
              this.Invoke((MethodInvoker)delegate () { SetTextBox(_Val); });
              return;
          }
          textBox1.Text = Convert.ToString(_Val);
      }
  </code></pre>