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:
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!
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.
I just want to reiterate a solution that Bradley Uffner mentioned buried in the comments above.
Close Visual Studio
Delete the hidden .vs
folder
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.
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.
Do not use clr-namespace syntax, use "using", for example:
change "clr-namespace:your.namespace" to "using:your.namespace"
I met the similar issue while viewing the workflow xaml in designer view mode. It can be resolved by below steps: