mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update MapImageLayer.cs
This commit is contained in:
parent
b2ff2d9e04
commit
2a4de62c45
|
|
@ -133,7 +133,11 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
while (Children.Count < 2)
|
while (Children.Count < 2)
|
||||||
{
|
{
|
||||||
Children.Add(new Image { Stretch = Stretch.Fill });
|
Children.Add(new Image
|
||||||
|
{
|
||||||
|
Opacity = 0d,
|
||||||
|
Stretch = Stretch.Fill
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -236,8 +240,16 @@ namespace MapControl
|
||||||
topImage.Source = image;
|
topImage.Source = image;
|
||||||
SetBoundingBox(topImage, boundingBox);
|
SetBoundingBox(topImage, boundingBox);
|
||||||
|
|
||||||
|
if (MapBase.ImageFadeDuration > TimeSpan.Zero)
|
||||||
|
{
|
||||||
FadeOver();
|
FadeOver();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
topImage.Opacity = 1d;
|
||||||
|
Children[0].Opacity = 0d;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue