To create and run new WPF project in Visual Studio:
Click File → New → Project
Select template by clicking Templates → Visual C# → Windows → WPF Application and press OK:
Open MainWindow.xaml file in Solution Explorer (if you don't see Solution Explorer window, open it by clicking V...