mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Image loading with cancellation
This commit is contained in:
parent
545e49b306
commit
220597ab31
5 changed files with 14 additions and 8 deletions
|
|
@ -171,8 +171,11 @@ namespace MapControl
|
|||
protected async Task UpdateImageAsync()
|
||||
{
|
||||
updateTimer.Stop();
|
||||
|
||||
cancellationTokenSource?.Cancel();
|
||||
|
||||
ClearValue(LoadingProgressProperty);
|
||||
|
||||
if (ParentMap != null && ParentMap.ActualWidth > 0d && ParentMap.ActualHeight > 0d)
|
||||
{
|
||||
var width = ParentMap.ActualWidth * RelativeImageSize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue