Improved Task usage

This commit is contained in:
ClemensFischer 2024-08-31 11:55:59 +02:00
parent cbe2751db7
commit 4e753ae718
10 changed files with 30 additions and 39 deletions

View file

@ -26,7 +26,7 @@ namespace MapControl
storyboard.Begin();
}
public static async Task SwapOpacities(UIElement topElement, UIElement bottomElement)
public static Task SwapOpacitiesAsync(UIElement topElement, UIElement bottomElement)
{
BeginOpacityAnimation(topElement, new DoubleAnimation
{
@ -41,7 +41,7 @@ namespace MapControl
Duration = TimeSpan.Zero
});
await Task.CompletedTask;
return Task.CompletedTask;
}
}
}