Solved

BusyIndicator

Posted on 2012-04-08
5
703 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
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…

733 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