Silverlight - 关于UI线程 / CompositionTarget.Rendering 事件

Pete发了一篇关于Silverlight 线程的blog

1. 使用BackgroundWorker

2. 使用Dispatcher 从非UI线程更新UI

2.1 最简单的调用Dispatcher的方法:使用Deployment .Current.Dispatcher

3. 使用DispatcherTimer

关于 CompositionTarget.Rendering 事件:Occurs just before the objects in the composition tree are rendered.

Silverlight与WPF在UI上的实现的不同:Silverlight没有单独的Rendering线程,所有rendering都是在程序的主线程UI Thread上运行。

应用:利用实现Composition­Target.Rendering事件实现 Just-in-time显示效果

你可能感兴趣的:(thread,UI,Blog,silverlight,WPF)