WPF (Windows Presentation Foundation) is the new UI presentation technology provided since .NET 3.0, and released together with WCF. For client applications that use a WPF-based front UI and consume WCF for data retrieving, it is quite common to display data objects retrieved from a WCF service to a WPF front UI.
In this recipe, we will use a simple WPF window application to demonstrate how to bind WCF service data to WPF UI elements.
First, we need to create a WPF client application with an XAML-based window as the main user interface. The following screenshot shows the main window of the WPF application.
For this sample case, we will put ...