Creating a WPF application to use the library
In this recipe, we will be creating a Windows Presentation Foundation application to use the library. A basic user interface will be created to show the content.
Getting ready
Make sure you have opened the .NET Standard 2.0 class library we built in the previous recipe. If not, make sure you complete the previous recipe before we dive into this one.
How to do it...
- Open Visual Studio 2017.
- Now, open the solution from the previous recipe. Click
File|Open|Open Project/Solution, or press Ctrl + Shift + O, and select theChapter6.AsyncTaskssolution. - Press Ctrl + Shift + B for a quick build to check that everything is fine.
- Click on the
Chapter6.AsyncTaskssolution label. ClickFile|Add|New Project. - In the
Add New Projecttemplate dialog box, expand theVisual C#node in the left-hand pane. - Select
Windows Classic Desktopand selectWPF App (.NET Framework)in the right-hand pane:

- Now, in the
Name:textbox, typeChapter6.AsyncTasks.WPFSiteContent...