mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Version 4.12.2 Fixed local file handling for UWP. All relative paths relative to ms-appx:
This commit is contained in:
parent
26bf0b5005
commit
c28387f87c
14 changed files with 172 additions and 192 deletions
|
|
@ -230,13 +230,13 @@ namespace MapControl
|
|||
|
||||
UpdateBoundingBox();
|
||||
|
||||
ImageSource imageSource = null;
|
||||
ImageSource image = null;
|
||||
|
||||
if (BoundingBox != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
imageSource = await GetImageAsync();
|
||||
image = await GetImageAsync();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
@ -244,7 +244,7 @@ namespace MapControl
|
|||
}
|
||||
}
|
||||
|
||||
SwapImages(imageSource);
|
||||
SwapImages(image);
|
||||
|
||||
updateInProgress = false;
|
||||
}
|
||||
|
|
@ -321,7 +321,7 @@ namespace MapControl
|
|||
}
|
||||
}
|
||||
|
||||
private void SwapImages(ImageSource imageSource)
|
||||
private void SwapImages(ImageSource image)
|
||||
{
|
||||
var topImage = (Image)Children[0];
|
||||
var bottomImage = (Image)Children[1];
|
||||
|
|
@ -329,7 +329,7 @@ namespace MapControl
|
|||
Children.RemoveAt(0);
|
||||
Children.Insert(1, topImage);
|
||||
|
||||
topImage.Source = imageSource;
|
||||
topImage.Source = image;
|
||||
SetBoundingBox(topImage, BoundingBox?.Clone());
|
||||
|
||||
topImage.BeginAnimation(OpacityProperty, new DoubleAnimation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue