private void onDataCached(CacheData args) { if (args != null && !string.IsNullOrWhiteSpace(args.FileName)) { ImageArt = new BitmapImage(new Uri($"ms-appdata:///local/cachedImages/{args.FileName}", UriKind.Absolute)); AverageColorBrushImageArt = new SolidColorBrush(ColorExtension.StringToColor(args.Color)); } else { ImageArt = new BitmapImage(new Uri("ms-appx:///Assets/disc_gray.png", UriKind.Absolute)); AverageColorBrushImageArt = new SolidColorBrush(ColorExtension.StringToColor("#7F7F7F7F")); } RaisePropertyChanged(nameof(ImageArt)); eventAggregator.GetEvent <DataCachedEvent>().Unsubscribe(onDataCached); }