上点击一个按钮,我将数据加载到数据网格我BusyIndicator控件到数据网格
MySqlCommand cmd1m = new MySqlCommand("select * from table", conn);
DataTable dt1m = new DataTable();
dt1m.Load(cmd1m.ExecuteReader());
System.Windows.Forms.BindingSource source = new System.Windows.Forms.BindingSource();
source.DataSource = dt1m;
dataGrid1.ItemsSource = source;
命名空间:
xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
和XAML:
<wpf:BusyIndicator Name="loading" IsBusy="False">
<DataGrid>...</DataGrid>
</<wpf:BusyIndicator>
但指标没有工作,为什么?我应该怎么做才能使它工作?
嗨,欢迎来到SO!考虑使用比“不工作”更贴切的描述。什么不起作用?它怎么不起作用?你能指望什么? – 2012-08-16 11:50:01