user1298925 user1298925 - 6 months ago 34
C# Question

Steps to add a xaml file and its associated xaml.cs into a VS2010 project

I am new to MVVM therefore I understand this is a beginner question but I have not found the answer so far.

But in the View project of a MVVM style, what are the steps to add a XAML file to the project. When the project is selected in the solutions Explorer and Add ->Item is selected then how do you make sure that a XAML file is added. or there is no magical way to do it and you just add a .CS file and then change the extention to XAML.

Thanks for any help or references to any URLs.


Just right click the project, choose Add -> Window and that will add a new xaml file along with its corresponding .cs file.