mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
TileSource.GetUri/LoadImageAsync argument order
This commit is contained in:
parent
3d6fc375b2
commit
d6faf252ee
4 changed files with 18 additions and 18 deletions
|
|
@ -22,7 +22,7 @@ namespace MapControl
|
|||
{
|
||||
var tcs = new TaskCompletionSource<object>();
|
||||
|
||||
async void LoadImage()
|
||||
async void LoadAndSetImageSource()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
@ -51,9 +51,9 @@ namespace MapControl
|
|||
}
|
||||
}
|
||||
#if UWP
|
||||
if (!await Image.Dispatcher.TryRunAsync(CoreDispatcherPriority.Low, LoadImage))
|
||||
if (!await Image.Dispatcher.TryRunAsync(CoreDispatcherPriority.Low, LoadAndSetImageSource))
|
||||
#else
|
||||
if (!Image.DispatcherQueue.TryEnqueue(DispatcherQueuePriority.Low, LoadImage))
|
||||
if (!Image.DispatcherQueue.TryEnqueue(DispatcherQueuePriority.Low, LoadAndSetImageSource))
|
||||
#endif
|
||||
{
|
||||
tcs.TrySetCanceled();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue