When I move .xaml and .xaml.vb files to a new Silverlight project, the generated .g files no longer include members for the x:Name attributes defined in the xaml file. This means the code-behind files can’t refer to those members and cannot build.
Share
In Visual Studio, select the .xaml file and in the properties, set the file’s Build Action to Page. You shouldn’t need to modify the project file by hand.