We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Problems with updating the BusyIndicator

Thread ID:





128375 Jan 17,2017 06:19 PM UTC Jan 20,2017 04:28 PM UTC WPF 3
Tags: BusyIndicator
Asked On January 17, 2017 06:19 PM UTC

I want to run the BusyIndicator after a ButtonClick.
Afterwards, the data are readed and the BusyIndicator is to be switched off after the complete reading.
In the meantime, no user action may be allowed.

But the BusyIndicator is not displayed. I try it with and without Dispatcher.
With async/await user Actions are allowed in the meantime what i not want

        private void Button_Click(object sender, RoutedEventArgs e)
                this.Dispatcher.BeginInvoke((Action)(() =>
                    this.BusyIndicator.IsBusy = true;
                List<Result> result = HCHelper.Read();
                this.Dispatcher.BeginInvoke((Action)(() =>
                    this.BusyIndicator.IsBusy = false;

Can you help me...

Ashok Kumar Murugesan [Syncfusion]
Replied On January 18, 2017 07:05 PM UTC

Hi Andreas Mazatis,

Thank you for contacting Syncfusion support.

We have prepared the sample which tries to meet your requirement. In this sample we have used button click event in this event we have set “IsBusy” property to true and then we have used time tick event where we have set the “IsBusy” property to false after getting the data . Please download the sample from the following location.

Sample link: http://www.syncfusion.com/downloads/support/directtrac/general/ze/Busyindicatorsample-1996977145.zip 

Please let us know if you need further assistance.

Ashok Kumar M. 

Replied On January 19, 2017 06:18 PM UTC

Unfortunately it does not work as I wanted:
-The BusyIndicator runs for 3 seconds and then freezes
-After the function call (Reading and parsing 2000 files from filesystem into a structure) - the BusyIndicator hides,

Vijayalakshmi Roopkumar [Syncfusion]
Replied On January 20, 2017 04:28 PM UTC

Hi Andreas, 
Query 1: The BusyIndicator runs for 3 seconds and then freezes 

From your update, we come to know that you want to display the busy indicator for long time. To display the busy indicator for long time, you can set it using the following code. 
Code Snippet [C#] 
//To display the BusyIndicator for Long time
timer.Interval = new TimeSpan(0,0,0,0,3500); 

Query 2:  After the function call (Reading and parsing 2000 files from filesystem into a structure) - the BusyIndicator hides, 
After we have added the items in the listbox , we have hide the BusyIndicator by setting the property IsBusy to false. 
Code Snippet [C#] 
//To hide the BusyIndicator 
 busycontrol.IsBusy = false; 

If our understanding on your requirement is different, then please brief about your requirement clearly by providing screenshot or video. It would be helpful for us to proceed further on this.

Vijayalakshmi V.R. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon