Hello,
I'm using RadWindow to show dialog with information. After the dialog opening my software loads data from database, while the process is in progress I would like to show a user all the dialogs, all controls and BusyIndicator. However, I didn't find a correct event to handle. The way I found which should works is to use Activated event, but it didn't helped me. Data loads firstly, and then dialog appears for a user.
The code I use:
View:
<telerik:RadWindow...xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"... > <telerik:EventToCommandBehavior.EventBindings> <telerik:EventBinding Command="{Binding OnActivatedCommand}" EventName="Activated" /> </telerik:EventToCommandBehavior.EventBindings> <telerik:RadBusyIndicator BusyContent="Loading..." IsBusy="{Binding IsBusy}" IsIndeterminate="True"> ... <telerik:RadWindow/>
ViewModel
public class ViewModel: ReactiveObject{ public ViewModel() { OnActivatedCommand = ReactiveCommand.Create(() => { IsBusy = true; Thread.Sleep(5000); //Loading data simulation IsBusy = false; }); } private bool _isBusy; public bool IsBusy { get { return _isBusy; } set { this.RaiseAndSetIfChanged(ref _isBusy, value); } } public ReactiveCommand OnActivatedCommand { get; private set; }}