Hello.
First of all, my problem is that when the window is opened, the busy indicator appears after about 1-2 seconds.
The window is wrapped with a busy indicator.
I use async on Loaded Evenet to control the IsBsuy property.
<telerik:EventToCommandBehavior.EventBindings>
<telerik:EventBinding EventName="Loaded" Command="{Binding OnEventLoadedCommand}"/>
</telerik:EventToCommandBehavior.EventBindings>
public ICommand OnEventLoadedCommand { get => new DelegateCommand(obj => Loaded(obj)); } private async void Loaded() { IsBusy = true; DataLoad . . . . (using async task) IsBusy = false; }
In a simple sample project, it appears immediately.
However, in my actual project, it is a bit delayed.
This is my guess.
Before Loaded, my actual project contains a lot of controls.
The window contains navigation.
There are about 10 usercontrols.
<Window>
<DataTemplate .... dataconext = ViewModel> * 10
</Window>
<usercontrol> * 10
<Many Controls Input Initial Setting>
</usercontrol>
ViewModel..cs => Read values of many properties before constructor
User controls all share the window viewmodel (not separate, only the WindowViewModel).
I think this is the cause of the first creation, but what about it?
Is there any way to solve this? If not, what's the problem?
Thanks.
Hello Psyduck,
Thank you for the provided code snippets.
I cannot be certain without being able to replicate the issue at my end, however, a possible reason I can think of for this delay is a timing issue caused by the fact that the RadBusyIndicator is not displayed immediately. This can be controlled via the DisplayAfter property.
Can you please try setting it to 00:00:00 and let me know if it resolves the issue? If that is not the case, please isolate this in a small sample project so that I can further investigate it at my end. If you do not wish to make the project public, you can open a new support ticket and attach it there.
Thank you in advance for your cooperation on the matter. I will be awaiting your reply.
But when I set 00:00:00 it worked immediately.
thank you.