How can I make a converter VisibleWhenEmptyString. I did it as below but it does not work. Regards
<converters:ValueWhenConverter x:Key="VisibleWhenEmptyString">
<converters:ValueWhenConverter.When>
<x:String ></x:String>
</converters:ValueWhenConverter.When>
<converters:ValueWhenConverter.Value>
<Visibility>Visible</Visibility>
</converters:ValueWhenConverter.Value>
<converters:ValueWhenConverter.Otherwise>
<Visibility>Collapsed</Visibility>
</converters:ValueWhenConverter.Otherwise>
</converters:ValueWhenConverter>
If you directly use Template10 source code to debug the ValueWhenConverter, you would see that it actually is a null value when you set
<x:String ></x:String>.So, when your Binding path value is
string.Empty, you could directly change it tonull. It's the simplest way to solve this issue.