In this chapter, you'll build a simple WPF application that is used to enter sales leads. The leads will be persisted to a SQL database, and any existing leads will be loaded from the database when the application is restarted.
Figure 11-1. Creating a WPF application project
The template will generate a window form named
MainWindow.xaml. Rename this file to AddLead.xaml. Open the
App.xaml file and change the ...