New to Telerik UI for WPF? Start a free 30-day trial
Creating the Client Application
Updated on Sep 24, 2025
Once you have created the Server Application, you may start developing the Client one.
To display the data from the WCF Data Service, create a new WPF application with a data source that is based on the service. Later in this walk-through, you will add data-bound controls to the application.
-
Create a new WPF application.
-
Generate the client code for a service of your choice. For this tutorial we are going to use the http://services.odata.org/Northwind/Northwind.svc service. Name the generated file "NorthwindEntities".
-
Add a new class inside the project and replace its declaration with the one demonstrated in Example 1.
Example 1: Defining the context
C#
public class MyNorthwindContext : NorthwindEntities
{
public MyNorthwindContext() : base(new Uri("http://services.odata.org/Northwind/Northwind.svc", UriKind.Absolute)){}
}