I have several Wait calls in a program since it does a few service calls, all of them work except one.. Here is an example of a working cursor of how I am setting it.
private void btnSaveTask_Click(object sender, RoutedEventArgs e)
{
this.Cursor = Cursors.Wait;
test.save();
this.Cursor = Cursors.Arrow;
}
and now the none working
private async void test(object sender, EventArgs e)
{
this.Cursor = Cursors.Wait;
test.Visibility = System.Windows.Visibility.Visible;
await Control.Initialize();
File.IsOpen = false;
Edit.IsSelected = true;
this.Cursor = Cursors.Arrow;
}
is it because of the async? and if so, how would i go about making it actually show a wait cursor for that method call since the time for it to run that full method and initialize can vary between 2-5 seconds.
Im also using WPF