Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

BusyIndicator

Posted on 2012-04-08
5
Medium Priority
?
721 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 16

Assisted Solution

by:Kalpesh Chhatrala
Kalpesh Chhatrala earned 600 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 900 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

597 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