Before starting with the WPF application development, make sure that you have installed the .NET desktop development workload on your system. Run your Visual Studio 2017 installer and confirm that the .NET desktop development workload is already checked. If not, check it and proceed towards installation of the required components.
Hope you have already configured your Visual Studio installation to build desktop applications using Windows Presentation Foundation. Let's start building our first WPF app using XAML and C#.