上點擊一個按鈕,我將數據加載到數據網格我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