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
Application.xaml in Visual Basic), which represents the application itself. These are analogous to the