Errata

Applications = Code + Markup: A Guide to the Microsoft® Windows® Presentation Foundation

Errata for Applications = Code + Markup: A Guide to the Microsoft® Windows® Presentation Foundation

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
PDF Page x
Last line

I did not discover this error; however, I wanted to post on O'Reilly online that the errata for this book appears to be maintained by Microsoft and can be found here:

http://support.microsoft.com/kb/926353

There are 2 errors listed as of now (that appear to still be uncorrected in the PDF version of the text) -- the code samples online location listed on page x, and a slightly incorrect reference to example code on Page 7.

The X-Planer  Jan 03, 2010 
Other Digital Version 1
3

I have a Kindle Dx. The code samples when wrapped across a page boundary, will not display the rest of the code when I click the next button. Instead the paragraph of text after the code sample is displayed. I've even seen this problem on the kindle ebook reader for the pc. I do not have this problem with other ebooks however.

Tim Benner  Jul 09, 2011 
Printed Page 9
USA

Consider:
MessageBoxResult result =
MessageBox.Show("Do you want to save your data?",
MainWindow.Title, MessageBoxButton.YesNoCancel,
MessageBoxImage.Question, MessageBoxResult.Yes);
args.Cancel = (result == MessageBoxResult.Cancel);

The runtime result is a dialog box "Do you want to save your data?". When you click "Yes" the application is gone instead of continuing to stay on. Either the message should change or the last line should change to:
args.Cancel = (result == MessageBoxResult.Yes);

Jeevaka Dassanayake  Nov 28, 2010 
Printed Page 22
1st para

"lower-left corner" should read "lower-right corner"

Oliver Bock  Oct 21, 2010 
Printed Page 93
US

'FindName' does not work as described in this page. It works only if the buttons were defined in XAML or elements are registered programmatically. I had to add following inside ?StackTenButtons?:
NameScope.SetNameScope( this, new NameScope() );
?.
RegisterName( btn.Name, btn ); // Inside the for loop.

Jeevaka Dassanayake  Dec 17, 2010 
Printed Page 98
1st para

Re. "... Source property of RoutedEventArgs refer to ScrollBar object ...", at least in .NET 3.5 Source property is 'ScrollViewer'. This is from "Locals" window:

Source {System.Windows.Controls.ScrollViewer} object {System.Windows.Controls.ScrollViewer}

Jeevaka Dassanayake  Dec 17, 2010 
Printed Page 122
para 1

".. all four columns except the second heights of ..." 'heights' should be changed to 'widths'.

Jeevaka  Dec 26, 2010