artem-zinnatullin / jet-image-loader

WP7+ fast and powerfull image loader with memory and storage caching for your projects!
Apache License 2.0
44 stars 14 forks source link

Not showing images when using DesignData #23

Open maengkom opened 10 years ago

maengkom commented 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();
artem-zinnatullin commented 10 years ago

Thank you for feedback, I'll handle this issue