Silverlight数据网格项目计数和忙碌指示器 [英] Silverlight Data Grid Item count & busy indicator
本文介绍了Silverlight数据网格项目计数和忙碌指示器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个显示大量数据的数据网格.随着数据网格的加载,我有一个显示计数的标签.如何用忙碌指示器指示网格仍在加载?
I have a datagrid that displays large amounts of data. As the datagrid loads, I have a label that displays the count. How can I also indicate with the busy indicator that the grid is still loading?
If (DataGrid.ItemsSource IsNot Nothing) Then
Dim count As Integer = DataGrid.ItemsSource.OfType(Of Object)().Count()
lblCount_stat.Content = "Count: " & count
End If
推荐答案
您需要使用BackgroundWorker
进行操作.
示例:
Silverlight中的BackgroundWorker [使用异步处理的WPF应用程序的响应UI [
You need to useBackgroundWorker
to do that.
Examples:
BackgroundWorker in Silverlight [^]
Responsive UIs for WPF Applications Using Asynchronous Processing[^]
Mark it as answer if it is helpful.
这篇关于Silverlight数据网格项目计数和忙碌指示器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文