mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 14:08:32 +00:00
Minor changes
This commit is contained in:
parent
3774bf2ed3
commit
0be26af38c
9 changed files with 32 additions and 29 deletions
|
|
@ -5,6 +5,7 @@
|
|||
using System;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Media.Imaging;
|
||||
|
||||
namespace MapControl
|
||||
|
|
@ -16,11 +17,11 @@ namespace MapControl
|
|||
UpdateImage(uri != null ? new BitmapImage(uri) : null);
|
||||
}
|
||||
|
||||
protected void UpdateImage(BitmapSource bitmapSource)
|
||||
protected void UpdateImage(ImageSource imageSource)
|
||||
{
|
||||
SetTopImage(bitmapSource);
|
||||
SetTopImage(imageSource);
|
||||
|
||||
var bitmapImage = bitmapSource as BitmapImage;
|
||||
var bitmapImage = imageSource as BitmapImage;
|
||||
|
||||
if (bitmapImage != null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue