title: Calling TextBox from MainWindow in Static Method
body: <p>If have a WPF Application with several Controls (TextBox).</p>
  
  <p>What iam trying to do is calling on of that Textbox in a static Method:</p>
  
  <pre><code>private static void Transiever(object sender, ReceivedEventArgs e)
      {
  
              FunkTasterServiceClient client = new FunkTasterServiceClient();
  
              client.Endpoint.Address = new EndpointAddress(new Uri(HERE I WANT TO CALL THE TEXTBOX (serviceURL.Text),
              client.Endpoint.Address.Identity, client.Endpoint.Address.Headers);
  
              client.GetReceivedTelegram(e.Telegram.ToString());
      }
  </code></pre>
  
  <p>But it is not possible. I tried to create a new Instance of Mainwindow to call that textbox. but got Error:</p>
  
  <pre><code>The calling thread must be STA, because many UI components require this.
  </code></pre>
  
  <p>How can i call the textbox safely? Can anyone help? Thanks!</p>