BooleanToVisibilityConverter,当为true或null时转换为Visible,为false时折叠

我在ThreeState ToggleButton和普通按钮之间进行了一些绑定

那就是我要达到的目标:

button#1如果button#2 IsChecked = True或Null,则显示      如果button#2 IsChecked = False,则button#1折叠

内置的BooleanToVisibilityConverter仅在为true时显示按钮。

如果您能对Converter有所帮助,我将不胜感激。 谢谢