Solved

BusyIndicator

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now