This project has moved and is read-only. For the latest updates, please go here.

Project Description

GreyableImage allows to make WPF Image grey itself out when it is disabled. Useful for Toolbar, Menu or Button icons.


GreyableImage - subclasses WPF Image control, allowing it to grey itself out when disabled.

        <gi:GreyableImage Source="image.png"/>

ImageGreyer - exposes attachable dependency property IsGreyable. When IsGreyable is attached to WPF Image control it makes it greyable. This class allows for exactly the same thing as the one above, but does not require you to use nonstandard WPF controls.

        <Image Source="image.png" gi:ImageGreyer.IsGreyable="true"/>

In both cases when the button is disabled the Image inside it turns greyscale.

Last edited Jan 23, 2009 at 11:55 AM by Alex_P, version 7