or
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.
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.