This is very strange.
I have an XAML file that looks as follows...
I was strugling with the same issue here. What I did was to delete ALL the created files unde the debug folder, then rebuild the solution.
Regards, Petrus