I am trying to port my Windows 8 Store application from Developer Preview to RTM now and I got problems with importing old XAML layout into the newly created project (the old project isn’t runnable anymore).
Whenever I import .xaml and .xaml.cs files, they are not recognized as a single file. Rather, two different files are added. How can I import both files as a single “entity”, as it happens if I add a new XAML page to my project?
When including XAML files you should have both XAML and xaml.cs files in the same folder, and then in Visual Studio select for including only the XAML files, not the xaml.cs files – they should be included automatically in the process.