[Debug] . [Wpf] XamlParseException was unhandled by user code

Question:

<ListBoxItem IsSelected="{Binding HideZeroInRows, Converter={StaticResource InvertedBoolConverter}}">Off</ListBoxItem>


Solution:

this exception tend to mean that there is an error (not syntax error but like resource not found error) in specific line. Here code cannot find the "InvertedBoolConverter" in the same files or ancestor files. So need to add :

<controlconverter:InvertedBoolConverter x:Key="InvertedBoolConverter"/>




猜你喜欢

转载自blog.csdn.net/u011144776/article/details/80897265