Whing Dela Cruz
asked on
BusyIndicator
How to apply BusyIndicator? My code are as follows;
private void btnClick_Click(object sender, System.Windows.RoutedEvent Args e)
{
busyIndicator.IsBusy = true;
ThreadPool.QueueUserWorkIt em((state) =>
{
Thread.Sleep(3 * 1000);
Dispatcher.BeginInvoke(() => busyIndicator.IsBusy = false);
SearchText.Focus();
});
}
I wish to apply while loading this data;
this.dataGrid1.ItemsSource = _iContext.MyBalances;
_iContext.Load(_iContext.G etMyBalanc esAccntQue ry());
The LoadingRow="LoadFund" of dataGrid1 where the code as follows;
private void LoadFund(object sender, DataGridRowEventArgs e)
{
double x1, x2;
var c = (MyBalance)e.Row.DataConte xt;
x1 = c.A_In; x2 = c.A_Out;
c.Balance = x3 + x1 - x2;
x3 = x3 + x1 - x2;
}
private void btnClick_Click(object sender, System.Windows.RoutedEvent
{
busyIndicator.IsBusy = true;
ThreadPool.QueueUserWorkIt
{
Thread.Sleep(3 * 1000);
Dispatcher.BeginInvoke(() => busyIndicator.IsBusy = false);
SearchText.Focus();
});
}
I wish to apply while loading this data;
this.dataGrid1.ItemsSource
_iContext.Load(_iContext.G
The LoadingRow="LoadFund" of dataGrid1 where the code as follows;
private void LoadFund(object sender, DataGridRowEventArgs e)
{
double x1, x2;
var c = (MyBalance)e.Row.DataConte
x1 = c.A_In; x2 = c.A_Out;
c.Balance = x3 + x1 - x2;
x3 = x3 + x1 - x2;
}
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!
ASKER