The window.g.cs file I created is not generated for the window I created. Is there a way that I can manually create the file?
You may have accidentally changed the build action of the .xaml file. Select the file in Solution Explorer and make sure the Build Action is set to Page.