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