WPF designer issues : XDG0008 The name “NumericTextBoxConvertor” does not exist in the namespace “clr-namespace:PulserTester.Convertors”

后端 未结 10 1097
遇见更好的自我
遇见更好的自我 2021-02-19 01:13

I have an error that not let me see my designer.. but I have no error on a build and my program runs fine with no problem

I have tried to:

  • Clean and Rebuil
相关标签:
10条回答
  • 2021-02-19 01:50

    I met the same issue. I tried to build and rebuild my solution, but it didn't work. Finally, I've closed Visual Studio and re-opened it, and it's fixed!

    0 讨论(0)
  • 2021-02-19 01:52

    My Xaml issue in the same location (no converters to be clear) was a different XDG0000 and it stemmed from a cut and paste of code from OneNote into the xaml.

    For some reason the pasted text ended up with hidden characters(NBWS to be exact) wherever there were line breaks. By removing all linebreaks between controls and bringing the control attributes onto one line such as from:

    <TransformGroup>
        <ScaleTransform CenterX="0.5" 
                        CenterY="0.5" 
                        ScaleX="1.5" 
                        ScaleY="1.5"/>
    
    </TransformGroup>
    

    to

    <TransformGroup>
        <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1.5" ScaleY="1.5"/>
    </TransformGroup>
    

    Resolved the issues.

    I present this here as an alternative to generic issues found in the .Resources section of a xaml page.

    0 讨论(0)
  • 2021-02-19 01:57

    I just want to reiterate a solution that Bradley Uffner mentioned buried in the comments above.

    1. Close Visual Studio

    2. Delete the hidden .vs folder

    3. Open Visual Studio and rebuild your project

    Keep in mind that this is a very generic error that has multiple causes and solutions, so this may not work for you, but it's definitely worth a shot since I know it has worked for me in the past on several occasions.

    0 讨论(0)
  • 2021-02-19 02:02

    You can switch to another framework version then switch back to your version, in my case I'm using VS 16.4. I changed from framework 4.6.2 to 4.7.2 then switch back to 4.6.2.

    This simple action solve XDG0008 and XDG0012 in my project.

    0 讨论(0)
  • 2021-02-19 02:03

    Do not use clr-namespace syntax, use "using", for example:

    change "clr-namespace:your.namespace" to "using:your.namespace"

    0 讨论(0)
  • 2021-02-19 02:06

    I met the similar issue while viewing the workflow xaml in designer view mode. It can be resolved by below steps:

    1. Close All Visual Studio
    2. Delete the hidden .VS folder
    3. Open Visual Studio again
    4. Rebuild your project
    0 讨论(0)
提交回复
热议问题