title: How do I "DoEvents" in WPF?
body: <p>I've read that the C# version is as follows:</p>
  
  <pre><code>Application.Current.Dispatcher.Invoke(
            DispatcherPriority.Background,
            new Action(delegate { }));
  </code></pre>
  
  <p>However I cannot figure out how to put the empty delegate into VB.NET,  as VB.NET does not appear to support anonymous methods. Ideas? </p>
  
  <p>Edit: Possibly this?</p>
  
  <pre><code>Application.Current.Dispatcher.Invoke(
    DispatcherPriority.Background,
    New Action(Sub()
  
               End Sub))
  </code></pre>