MapTileLayerBase.TileImageLoader property

This commit is contained in:
ClemensFischer 2023-08-22 18:16:24 +02:00
parent ebdbc012f2
commit b32755e29e
7 changed files with 13 additions and 33 deletions

View file

@ -11,9 +11,9 @@ namespace MapControl
{
public partial class Tile
{
private void AnimateImageOpacity(ImageSource image)
private void AnimateImageOpacity()
{
if (image is BitmapSource bitmap && !bitmap.IsFrozen && bitmap.IsDownloading)
if (Image.Source is BitmapSource bitmap && bitmap.IsDownloading && !bitmap.IsFrozen)
{
bitmap.DownloadCompleted += BitmapDownloadCompleted;
bitmap.DownloadFailed += BitmapDownloadFailed;