1

I have a WPF project, that after switching from Debug to Release version, Window1.xaml.cs is no longer familiar with names I defined in Window1.xaml. Is there a way to fix this? Thanks!

Sonja
  • 9
  • 5
  • May be restart visual studio. – Reza ArabQaeni Jun 30 '14 at 11:47
  • the code is pretty large, what do you think might be a good indicator? – Sonja Jun 30 '14 at 12:31
  • 1
    here's Window1.xaml: http://pastebin.com/zPAkrs1f and here's Window1.xaml.cs: http://pastebin.com/qk65Hqvs . it can't, for instance, understand the assignments, starting at line 263 – Sonja Jun 30 '14 at 12:34
  • 1
    It is customary to `Build` your project after changing the *Solution Configuration*. – Sheridan Jun 30 '14 at 12:40
  • 1
    You can also check if Build Action is set to 'Page' for your window. – Demir Jul 01 '14 at 08:40
  • Maybe it's just me, but I took at look at your pastebin code and I don't see any object named `MyPropertyGrid` in the XAML for Window1.xaml, so that would explain why the `MyPropertyGrid.something` calls in Window1.xaml.cs are saying they can't find the object – Rachel Jul 04 '14 at 14:24

0 Answers0