title: Dispatcher.BeginInvoke Action with Parameters
body: <p>I'm using a Dispatcher to update my UI before I handle some resiszing.
  The Problem ist the part of BeginInvoke(DispatcherPriorty, <strong>new ACTION</strong>) is where I am stuck.
  I want to call a method <strong>with</strong> Parameters and I don"t know why.</p>
  
  <p>Thats my current Dispatcher:</p>
  
  <pre><code>void s_SizeChanged(object sender, SizeChangedEventArgs e)
  {
      Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, new Action(test));
  
  }
  </code></pre>
  
  <p>And this is my method i am calling:</p>
  
  <pre><code>public void test()
  {
      foreach (Structures s in ((TreeView)this.cont.Children[0]).Items)
          s.updateRelationLines(this.Data, this.cont.ColumnDefinitions[1]);
  }
  </code></pre>
  
  <p>I just want to replace <code>this.Data</code> and <code>this.cont.Columndefinitions[1]</code> with Parameters.</p>