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

@ -11,7 +11,7 @@ namespace MapControl
{
public static class OpacityHelper
{
public static async Task SwapOpacities(UIElement topElement, UIElement bottomElement)
public static Task SwapOpacitiesAsync(UIElement topElement, UIElement bottomElement)
{
topElement.BeginAnimation(UIElement.OpacityProperty, new DoubleAnimation
{
@ -26,7 +26,7 @@ namespace MapControl
Duration = TimeSpan.Zero
});
await Task.CompletedTask;
return Task.CompletedTask;
}
}
}