See the Universal Sample Implementation [here](https://github.com/Microsoft/Windows-universal-samples/blob/master/Samples/XamlTreeView/cs/BooleanToVisibilityConverter.cs). Really helps when you need to take the inverse of the bool for visibility flipping/switching.