我正在尝试通过每秒设置源属性来更新图像,这样可以实现更新,但会在更新时导致闪烁。
CurrentAlbumArt = new BitmapImage();
CurrentAlbumArt.BeginInit();
CurrentAlbumArt.UriSource = new Uri((currentDevice as AUDIO).AlbumArt);
CurrentAlbumArt.CreateOptions = BitmapCreateOptions.IgnoreImageCache;
CurrentAlbumArt.EndInit();
如果我不设置
IgnoreImageCache
,图片将不会更新,也就没有闪烁了。有没有一种方法来避免这个缺点呢?祝好。
StreamSource
属性。 - Clemens