Creating a Windows Presentation Foundation Project

Windows Presentation Foundation (WPF) 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: MainWindow.xaml, which represents the main window for the app; and App.xaml (Application.xaml in Visual Basic), which represents the application itself. These are analogous to the Form1.cs/Form1.vb and Program.cs/Module1.vb ...

Get Microsoft Visual Studio 2015 Unleashed, Third Edition 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.