This question is locked. New answers and comments are not allowed.
Hello!
We have a problem.
Sometimes our busy indicator show busycontent (Loading...), doesn't show indicator and IsBusy = true.
The scenario is following:
1) BusyIndicator.DisplayAfter = 1 second
2) We call some server method and set IsBusy = true.
3) Then, after we get answer from server we do some things with answer and call Dispatcher.BeginInvoke(() => BusyIndicator.IsBusy = false);
After this we see that busy indiactor show busycontent (Loading...), doesn't show indicator.
We try to find the answer in you source code and suggest following thing:
When time for displaying indicator is invoke callback - you set IsContentVisible = true and IsBusyIndicationVisible = true;
So if time for the timer is left, timer append invokation callback. If at this moment we work with server anwer (on point 3 in the list) - BusyIndicator.IsBusy = false can be called before timer callback is invoked but after it added to the dispatcher.
Do we think right or may be there are any additional thouths about why we see busyindicator content (but it's wrang because IsBusy = false) and don't see indicator?
Thanks, Anatoly.
We have a problem.
Sometimes our busy indicator show busycontent (Loading...), doesn't show indicator and IsBusy = true.
The scenario is following:
1) BusyIndicator.DisplayAfter = 1 second
2) We call some server method and set IsBusy = true.
3) Then, after we get answer from server we do some things with answer and call Dispatcher.BeginInvoke(() => BusyIndicator.IsBusy = false);
After this we see that busy indiactor show busycontent (Loading...), doesn't show indicator.
We try to find the answer in you source code and suggest following thing:
When time for displaying indicator is invoke callback - you set IsContentVisible = true and IsBusyIndicationVisible = true;
So if time for the timer is left, timer append invokation callback. If at this moment we work with server anwer (on point 3 in the list) - BusyIndicator.IsBusy = false can be called before timer callback is invoked but after it added to the dispatcher.
Do we think right or may be there are any additional thouths about why we see busyindicator content (but it's wrang because IsBusy = false) and don't see indicator?
Thanks, Anatoly.