mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-07 07:25:21 +00:00
Updated TileImageLoader and ImageFileCache for WinUI
This commit is contained in:
parent
9ebc88204b
commit
a9475f79fe
7 changed files with 90 additions and 75 deletions
|
|
@ -6,17 +6,11 @@ using System;
|
|||
using System.Windows.Controls;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Threading;
|
||||
|
||||
namespace MapControl
|
||||
{
|
||||
public partial class Tile
|
||||
{
|
||||
public DispatcherOperation SetImageAsync(ImageSource image)
|
||||
{
|
||||
return Image.Dispatcher.InvokeAsync(() => SetImage(image));
|
||||
}
|
||||
|
||||
public void SetImage(ImageSource image, bool fadeIn = true)
|
||||
{
|
||||
Pending = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue