mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 14:08:32 +00:00
Fade animations
This commit is contained in:
parent
b9a34fd5e4
commit
4c669f4df0
7 changed files with 45 additions and 39 deletions
|
|
@ -10,7 +10,7 @@ namespace MapControl
|
|||
{
|
||||
public static void FadeOver(Image topImage, Image bottomImage)
|
||||
{
|
||||
var animation = new Animation
|
||||
var fadeInAnimation = new Animation
|
||||
{
|
||||
FillMode = FillMode.Forward,
|
||||
Duration = MapBase.ImageFadeDuration,
|
||||
|
|
@ -24,7 +24,7 @@ namespace MapControl
|
|||
}
|
||||
};
|
||||
|
||||
_ = animation.RunAsync(topImage).ContinueWith(
|
||||
_ = fadeInAnimation.RunAsync(topImage).ContinueWith(
|
||||
_ => bottomImage.Opacity = 0d,
|
||||
TaskScheduler.FromCurrentSynchronizationContext());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue