TileSource.GetUri/LoadImageAsync argument order

This commit is contained in:
ClemensFischer 2025-09-10 22:19:20 +02:00
parent 3d6fc375b2
commit d6faf252ee
4 changed files with 18 additions and 18 deletions

View file

@ -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();