Skip to content

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

Notifications You must be signed in to change notification settings

AlexeyPotapov/GreyableImage

Repository files navigation

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

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

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.

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

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages