是否有一个同步等待函数不会绑定.NET WPF中的UI线程?例如:不阻塞UI线程的同步等待
Sub OnClick(sender As Object, e As MouseEventArgs) Handles button1.Click
Wait(2000)
'Ui still processes other events here
MessageBox.Show("Is has been 2 seconds since you clicked the button!")
End Sub
在纯Win32中你可以使用MsgWaitForMultipleObjects来实现这一点。 – 2011-05-24 23:10:23