Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 577
user1298925 Avatar asked Jan 13 '23 21:01

user1298925


1 Answers

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

like image 98
Chris Dunaway Avatar answered Jan 16 '23 18:01

Chris Dunaway