How do I “DoEvents” in WPF?

前端 未结 5 1865

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

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


        
5条回答
  •  爱一瞬间的悲伤
    2020-12-15 13:54

    Use the Function keyword:

    Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, New Action(Function() Do ... End Function))
    

提交回复
热议问题