mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Improved Task usage
This commit is contained in:
parent
cbe2751db7
commit
4e753ae718
10 changed files with 30 additions and 39 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue