Hello Devz,

WPF is providing a really useful converter called BooleanToVisibilityConverter. But the thing with this converter is that it’s really limited. Let’s say we want to use the same boolean to show one control and collapse another one, we just can’t…

Here is new version of this converter that can accept a parameter to invert the boolean when needed:

Usage:

You will notice the ConverterParameter=false which allows the invertion of the boolean value.

Happy coding!  🙂