How do I "DoEvents" in WPF?

Posted by SLC on Stack Overflow See other posts from Stack Overflow or by SLC
Published on 2010-04-19T12:33:48Z Indexed on 2010/04/19 12:43 UTC
Read the original article Hit count: 192

Filed under:
|

I've read that the C# version is as follows:

Application.Current.Dispatcher.Invoke(
          DispatcherPriority.Background,
          new Action(delegate { }));

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?

Edit: Possibly this?

Application.Current.Dispatcher.Invoke(
  DispatcherPriority.Background,
  New Action(Sub()

             End Sub))

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about wpf