Data Access has been discontinued. Please refer to this page for more information.

Creating the WPF Project

In this step you will create and set up a WPF Application containing two windows, those will be the Views in your project. One will be the main window and will be used to display, filter and delete cars from the database. The other will be called from the main window and will allow you to edit existing cars or add new ones.

Preoparing the project

  1. Add to your solution a new WPF Application project and name it SofiaCarRental.WPF
  2. Integrate the Telerik.DataAccess.Core NuGet package with the SofiaCarRental.WPF project.
  3. Add a reference to SofiaCarRental.Model in the SofiaCarRental.WPF project.
  4. Copy the App.config file from the model SofiaCarRental.Model to the wpf project SofiaCarRental.WPF.

  5. Add the following references to your WPF project:

    • Telerik.Windows.Data
    • Telerik.Windows.Controls
    • Telerik.Windows.Controls.Data
    • Telerik.Windows.Controls.GridView
    • Telerik.Windows.Controls.Input
  6. Add two new folders in your project, name them Views and ViewModels. In the Views folder add another one named ViewInterfaces.

Next step: Creating Converters and the Base View Interface