Book Image

Windows Presentation Foundation Development Cookbook

Book Image

Windows Presentation Foundation Development Cookbook

Overview of this book

Windows Presentation Foundation (WPF) is Microsoft's development tool for building rich Windows client user experiences that incorporate UIs, media, and documents. With the updates in .NET 4.7, Visual Studio 2017, C# 7, and .NET Standard 2.0, WPF has taken giant strides and is now easier than ever for developers to use. If you want to get an in-depth view of WPF mechanics and capabilities, then this book is for you. The book begins by teaching you about the fundamentals of WPF and then quickly shows you the standard controls and the layout options. It teaches you about data bindings and how to utilize resources and the MVVM pattern to maintain a clean and reusable structure in your code. After this, you will explore the animation capabilities of WPF and see how they integrate with other mechanisms. Towards the end of the book, you will learn about WCF services and explore WPF's support for debugging and asynchronous operations. By the end of the book, you will have a deep understanding of WPF and will know how to build resilient applications.
Table of Contents (13 chapters)
2
Using WPF Standard Controls

Introduction

In the modern world, enterprise applications are the key to consumer-centric enterprises. Users access one or multiple devices to connect to the external world. And to succeed at this, the business needs shared services, which can be consumed by all such devices.

The service-oriented architecture (SOA) is a design principle that enterprises follow to outline well-defined services, using a common set of contracts. Each of these services can be individually modified independently of one another and consumed by the external world.

Windows Communication Foundation (WCF) is a framework to build such service-oriented applications. Using WCF, you can send data/messages asynchronously from one endpoint to the other. You can host a service endpoint in IIS, or in an application directly. The messages passed via this service endpoint can be a single character or a word sent as XML, or a complex stream of binary data.

WCF has been widely accepted as a standard to create web services...