SystemImageCache (Kawagoe.Storage)

Implements an ImageCache using the cache mechanism provided by the system.

A SystemImageCache instance does nothing more than returning BitmapImage instances created using the image URIs.

Example

<Image Source="{Binding Source}"/>

public class Model
{
    private ImageCache _cache = new SystemImageCache("cache name");

    // ...

    public ImageSource Source
    {
        get
        {
            return _cache.Get(imageUri);
        }
    }
}

Last edited Sep 5, 2010 at 3:01 PM by andreassaudemont, version 2

Comments

No comments yet.