Sometimes when you download WPF demo source code off the net and try to build it, you'll get the error "cannot locate resource window1.xaml". You can also get this error when converting a VS2005 project to a VS2008 project. Several people have asked me about this issue, which can be easily remedied by:
- Right-clicking on the Solution or project file in Visual Studio and selecting "Clean"
- Or, add a space in App.xaml which will cause Visual Studio to clean and rebuild the whole project.
Hope this helps,
Alan