Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not showing images when using DesignData #23

Open
maengkom opened this issue Nov 17, 2013 · 1 comment
Open

Not showing images when using DesignData #23

maengkom opened this issue Nov 17, 2013 · 1 comment

Comments

@maengkom
Copy link

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
Copy link
Owner

Thank you for feedback, I'll handle this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants