mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 22:46:58 +00:00
MapImageLayer animation
This commit is contained in:
parent
2d6b2eb2aa
commit
e0e2061014
5 changed files with 22 additions and 24 deletions
|
|
@ -125,10 +125,7 @@ namespace MapControl
|
|||
/// <summary>
|
||||
/// Gets the progress of the ImageLoader as a double value between 0 and 1.
|
||||
/// </summary>
|
||||
public double LoadingProgress
|
||||
{
|
||||
get => (double)GetValue(LoadingProgressProperty);
|
||||
}
|
||||
public double LoadingProgress => (double)GetValue(LoadingProgressProperty);
|
||||
|
||||
protected override void SetParentMap(MapBase map)
|
||||
{
|
||||
|
|
@ -136,11 +133,7 @@ namespace MapControl
|
|||
{
|
||||
while (Children.Count < 2)
|
||||
{
|
||||
Children.Add(new Image
|
||||
{
|
||||
Opacity = 0d,
|
||||
Stretch = Stretch.Fill,
|
||||
});
|
||||
Children.Add(new Image { Stretch = Stretch.Fill });
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -236,7 +229,6 @@ namespace MapControl
|
|||
if (Children.Count >= 2)
|
||||
{
|
||||
var topImage = (Image)Children[0];
|
||||
var bottomImage = (Image)Children[1];
|
||||
|
||||
Children.RemoveAt(0);
|
||||
Children.Insert(1, topImage);
|
||||
|
|
@ -244,7 +236,7 @@ namespace MapControl
|
|||
topImage.Source = image;
|
||||
SetBoundingBox(topImage, boundingBox);
|
||||
|
||||
FadeOver(topImage, bottomImage);
|
||||
FadeOver();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue