In this recipe, we will be creating a Windows Presentation Foundation application to use the library we have created. We will be creating a UI to send an email using the library.
Make sure you have completed the previous recipe for sending an email. If you have completed it, open it up and do a quick build to check everything works fine.
- 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 theChapter7.MailBox
solution. - Press Ctrl + Shift + B for a quick build to check everything is fine.
- Click on the
Chapter7.MailBox
solution label. ClickFile
|Add
|New Project
. - In the
Add New Project
template dialog box, expand theVisual C#
node in the left pane. - Select
Windows Classic Desktop
and selectWPFApp (.NET Framework)
in the right pane: