The tag 'XXX' does not exist in XML namespace 'clr-namespace:YYY'

前端 未结 10 1023
渐次进展
渐次进展 2021-02-07 11:59

I have implemented a converter to convert Int32 to String to be able to binding a property to a textBox.

I implement this converter in the namespace MyApp.Converters and

10条回答
  •  心在旅途
    2021-02-07 12:08

    Three fixes to make here:

    1. No spaces -> xmlns:converter="clr-namesapce:MyApp.Converters,aseembly=MyApp"
    2. No misspellings -> xmlns:converter="clr-namespace:MyApp.Converters,assembly=MyApp"
    3. Right delimiters -> xmlns:converter="clr-namespace:MyApp.Converters;assembly=MyApp"

    From the the documentation:

    Note that the character separating the clr-namespace token from its value is a colon (:) whereas the character separating the assembly token from its value is an equals sign (=). The character to use between these two tokens is a semicolon. Also, do not include any whitespace anywhere in the declaration.

提交回复
热议问题