Creating a Windows Presentation Foundation Project

Windows Presentation Foundation projects behave much like WinForms projects do. In fact, one of the design goals for the WPF designer and editor was to act in ways that would be familiar to developers who are used to Windows Forms development. Just as we previously did with our WinForms project, we start the development and design process by selecting a template—WPF Application—from the File, New Project dialog.

Two XAML files are automatically created within the project: Windowl.xaml, which represents the main window for the app, and App.xaml, which represents the application itself. These are analogous to the Form1.cs/Form1.vb and Program.cs/Module1.vb files created in a new Windows Forms project. ...

Get Microsoft® Visual Studio® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.