Simplified DispatcherTimer wrapper

This commit is contained in:
ClemensFischer 2025-01-28 17:52:40 +01:00
parent 4ec73292c3
commit d83493a498
7 changed files with 28 additions and 46 deletions

View file

@ -22,7 +22,6 @@ using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Hosting;
using Microsoft.UI.Xaml.Media;
using DispatcherTimer = Microsoft.UI.Dispatching.DispatcherQueueTimer;
#endif
namespace MapControl
@ -192,15 +191,15 @@ namespace MapControl
protected bool IsBaseMapLayer => parentMap != null && parentMap.Children.Count > 0 && parentMap.Children[0] == this;
protected abstract void SetRenderTransform();
protected abstract Task UpdateTileLayerAsync(bool tileSourceChanged);
protected Task LoadTilesAsync(IEnumerable<Tile> tiles, string cacheName)
{
return TileImageLoader.LoadTilesAsync(tiles, TileSource, cacheName, loadingProgress);
}
protected abstract void SetRenderTransform();
protected abstract Task UpdateTileLayerAsync(bool tileSourceChanged);
private Task UpdateTileLayer(bool tileSourceChanged)
{
updateTimer.Stop();