Just a small piece of code which might come in handy in a Silverlight or WPF project: The typical boolean to
Very often in one of your views, there is a piece of the view that must be shown or hidden in response to the value of a checkbox, for instance.
That’s where this converter comes in.
It also has an
IsInverted property, in case you want to hide something in case a certain value is true (and show it when it’s false).
Here’s the code: