Open maengkom opened 10 years ago
At design time, when I use code below in xaml, images are dissapear, hoping design time will use MemoryCacheImpl.
d:DataContext="{d:DesignData /Samples/Data.xaml}"
converter is :
if (!System.ComponentModel.DesignerProperties.IsInDesignTool) { return new JetImageLoaderConfig.Builder { IsLogEnabled = true, CacheMode = CacheMode.MemoryAndStorageCache, DownloaderImpl = new HttpWebRequestDownloader(), MemoryCacheImpl = memoryCacheImpl, StorageCacheImpl = new LimitedStorageCache(IsolatedStorageFile.GetUserStoreForApplication(), "\\CacheImages", new SHA1CacheFileNameGenerator(), 1024 * 1024 * 10), // == 10 MB }.Build(); } else return new JetImageLoaderConfig.Builder { IsLogEnabled = true, CacheMode = CacheMode.OnlyMemoryCache, DownloaderImpl = new HttpWebRequestDownloader(), MemoryCacheImpl = memoryCacheImpl }.Build();
Thank you for feedback, I'll handle this issue
At design time, when I use code below in xaml, images are dissapear, hoping design time will use MemoryCacheImpl.
d:DataContext="{d:DesignData /Samples/Data.xaml}"
converter is :