2010-03-09 33 views
1

有誰知道爲什麼我不能在我的Silverlight應用程序中調用BeginInvoke/EndInvoke on Action和Func委託?我不斷收到NotSupportedException。有沒有解決方法?在Silverlight中調用Begin/EndInvoke Action和Func

+1

你可以發佈一個小例子,唯一的BeginInvoke方法可以是在'Dispatcher'但沒有EndInvoke會。 – AnthonyWJones 2010-03-10 14:50:55

回答

2

爲此使用調度程序。

Deployment.Current.Dispatcher.BeginInvoke是你想要的方法:)。

它接受funcs中與行動

相關問題