I'm not sure what to make of this. I have a WPF application that I haven't worked on for a couple months, but now have to add something to. The project opens fine, and it runs fine in the debugger, but it's also showing me numerous errors on every code page. So...it runs despite there being a whole bunch of errors...which clearly are not errors, because there's a definite pattern to them.

The first error is in the constructor, because InitializeComponent isn't found. All other errors indicate that the designer page is lost, as far as the debugger is concerned. Every control is an error, because it is not declared. In WinForms, all of that would be located with InitializeComponent, but the layout is different with WPF.

Since the program is running fine in the debugger, this appears to be something about the IDE having lost track of the declaration of both InitializeComponent and ALL of the controls on the form. How do I reconnect the two?