Solved

BusyIndicator

Posted on 2012-04-08
5
696 Views
Last Modified: 2012-05-03
How to apply BusyIndicator? My code are as follows;

        private void btnClick_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            busyIndicator.IsBusy = true;
           
            ThreadPool.QueueUserWorkItem((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.GetMyBalancesAccntQuery());
 
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.DataContext;
            x1 = c.A_In; x2 = c.A_Out;
            c.Balance =  x3 + x1 - x2;

            x3 =  x3 + x1 - x2;
        }
0
Comment
Question by:Whing Dela Cruz
  • 3
5 Comments
 
LVL 16

Assisted Solution

by:Kalpesh Chhatrala
Kalpesh Chhatrala earned 200 total points
ID: 37820755
Hi,

Check below Silverlight Busy Indicator Demo

http://www.codeproject.com/Articles/80002/How-To-Work-With-Silverlight-BusyIndicator 


Kalpesh
0
 

Accepted Solution

by:
Whing Dela Cruz earned 0 total points
ID: 37820788
Hi! I did it but how to apply this loading data to busyIndicator?

        this.dataGrid1.ItemsSource = _iContext.MyBalances;
        _iContext.Load(_iContext.GetMyBalancesAccntQuery());
0
 
LVL 29

Assisted Solution

by:Gautham Janardhan
Gautham Janardhan earned 300 total points
ID: 37822473
private void btnClick_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            busyIndicator.IsBusy = true;
           
            ThreadPool.QueueUserWorkItem((state) =>
            {
                 _iContext.Load(_iContext.GetMyBalancesAccntQuery());
                Dispatcher.BeginInvoke(() => 
{
this.dataGrid1.ItemsSource = _iContext.MyBalances;
busyIndicator.IsBusy = false;
});
                SearchText.Focus();
            });
        }

Open in new window

0
 

Author Comment

by:Whing Dela Cruz
ID: 37905203
Hi all! Sorry for the late response. I've been in a long vacation. I may now trying all suggested answer given above. Thanks!
0
 

Author Closing Comment

by:Whing Dela Cruz
ID: 37923308
Thanks!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question