Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "the typical Window class is declared as partial, meaning there may be more source files describing the same class".

A block of code is set as follows:

class Book {
   public string Name { get; set; }
   public string Author { get; set; }
   public decimal Price { get; set; }
   public int YearPublished { get; set; }
 }

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

<Window x:Class="CH01.CustomTypes.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" ...

Get Windows Presentation Foundation 4.5 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.