Windows Presentation Foundation 4.5 Cookbook
上QQ阅读APP看书,第一时间看更新

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"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 xmlns:local="clr-namespace:CH01.CustomTypes"

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "right-click on the project node and select Add and then Class…".

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.