Errata

MCTS Self-Paced Training Kit (Exam 70-502): Microsoft® .NET Framework 3.5—Windows® Presentation Foundation

Errata for MCTS Self-Paced Training Kit (Exam 70-502): Microsoft® .NET Framework 3.5—Windows® Presentation Foundation

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

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

Version Location Description Submitted By Date submitted Date corrected
Printed
Page xxiii

Linkld should be LinkId
On page xxiii, the URL in the "Digital Content for Digital Book Readers" box includes a lowercase L rather than an uppercase i in LinkId.



Change:

"http://go.microsoft.com/fwlink/?Linkld=120409"



To:

"http://go.microsoft.com/fwlink/?LinkId=120409"

Microsoft Press  Jul 13, 2010 
Other Digital Version
CD-ROM

Readiness Review Assessment answer incorrect On the Readiness Review assessment, one of the questions begins: "You are creating a Windows Presentation Foundation application. You must add code so that when a window's menu item is clicked the ApplicationCommands.Save command is executed." The answer that is marked as correct is incorrect:"Add the following C# code to the window's constructor:this.CommandBindings.Add(new CommandBinding(ApplicationCommands.Save));"The answer should be:"Add the following XAML menu declaration:"

Microsoft Press  May 06, 2010 
PDF
Page xxiii
Ebook Paragraph

in the section marked eBook, the Author states
"...You can use the eBook to cut and paste code as you work through the excercises"

but this is not possible when reading using Adobe Reader - the DRM restrictions prevent this :

When looking in Document Properties, Content Copying or Extraction is Not allowed, therefore the code samples cannot be copied out. I have tried to copy code content from this book, but the copy option is disabled. Suggest re writing this section to remove reference to the ability to copy / paste from the eBook.

Note from the Author or Editor:
Huh. That's kinda lame. I guess eliminate that sentence-I didn't know the DRM was configured that way.

Computa_mike  Aug 20, 2010 
Printed
Page 5

WindowsStyle should be WindowStyle and NoBorder should be None
On page 5, the last sentence of the "AllowsTransparency" description in Table 1-1 is incorrect.



Change:

"When

AllowsTransparency is set to True, WindowsStyle must be set to WindowsStyle.NoBorder."



To:

"When

AllowsTransparency is set to True, WindowStyle must be set to WindowStyle.None."

Microsoft Press  Jul 13, 2010 
Printed
Page 7

NoBorder should be None On page 7, the Description of WindowStyle in Table 1-1 is incorrect. Change: "Gets or sets the style of the window. The window style can be set to NoBorder, SingleBorderWindow, ThreeDBorderWindow, or ToolWindow. SingleBorderWindow and ThreeDBorderWindow appear identical when run on Microsoft Windows Vista. ToolWindow appears with no icon and no minimize or maximize buttons. If AllowsTransparency is set to True, you must set WindowStyle to NoBorder." To: "Gets or sets the style of the window. The window style can be set to None, SingleBorderWindow, ThreeDBorderWindow, or ToolWindow. SingleBorderWindow and ThreeDBorderWindow appear identical when run on Microsoft Windows Vista. ToolWindow appears with no icon and no minimize or maximize buttons. If AllowsTransparency is set to True, you must set WindowStyle to None."

Microsoft Press  May 06, 2010 
PDF
Page 20
Answer D

VB version of code does not match C# version of code.

In th C# version of code, the instance of the Window1 class (aWindow) has it's show method called.

aWindow.Show();

In the VB.NET version of the code, the Class has it's show method called.

Window1.Show

I believe this should be re-written to be

aWindow.Show()


Note from the Author or Editor:
Either actually works in VB.NET but lets change it for consistency sake.

Computa_mike  Aug 20, 2010 
Printed
Page 22

"NavigateURI" should be "NavigateUri"
On page 22, the third sentence of the last paragraph incorrect capitalization in a property.



Change:

"To change the NavigateURI property dynamically, you must set the Name property of the hyperlink in XAML, as shown here in bold:"



To:

"To change the NavigateUri property dynamically, you must set the Name property of the hyperlink in XAML, as shown here in bold:"

Microsoft Press  Jul 13, 2010 
Printed
Page 27 & 28

Order of Navigation Events incorrect On pages 27 & 28, Table 1-2 the order of Navigation Events is partially incorrect. The following two events and their descriptions need to be switched: Navigated NavigationProgress The correct order should be: Navigating NavigationProgress Navigated LoadCompleted FragmentNavigation NavigationStopped NavigationFailed

Microsoft Press  May 06, 2010 
Printed
Page 39

Order of Navigation Events incorrect
On page 39, Lesson 2 review, Question 3, Answer B has the events listed incorrectly.



Change:

"B. Navigating

Navigated

NavigationProgress

LoadCompleted

FragmentNavigation"



To:

"B. Navigating

NavigationProgress

Navigated

LoadCompleted

FragmentNavigation"

Microsoft Press  Jul 13, 2010 
Printed
Page 50

" On page 50, the first and third lines of the first C# code sample are incorrect. Change: for (int i = 0; i <= 500; i++) { for (int j = 1; j To: for (int i = 0; i < 500; i++) { for (int j = 1; j

Microsoft Press  May 06, 2010 
Printed
Page 51

"BackgroundWorker.RunCompleted" should be "BackgroundWorker.RunWorkerCompleted"
On page 51, the second bullet point on the page contains an incorrect event name.



Change:

"The BackgroundWorker.RunCompleted event is fired when the background process s completed."



To:

"The BackgroundWorker.RunWorkerCompleted event is fired when the background process s completed."

Microsoft Press  Jul 13, 2010 
Printed
Page 57

"2005" should be "2008" On page 57, the second bullet point up from the bottom contains an incorrect version of Visual Studio. Change: "Microsoft Visual Studio 2005 Professional Edition installed on your computer" To: "Microsoft Visual Studio 2008 Professional Edition installed on your computer"

Microsoft Press  May 06, 2010 
Printed
Page 228
the Groups and Employees ListBoxes


On Page 228, the Groups and Employees ListBoxes do not bind to the data object when you select the master item.
I had to add the following to the 2nd and 3rd StackPanels (containing groups and employees respectively):

DataContext="{Binding Path=CurrentItem}"
e.g.


<StackPanel DataContext="{Binding Path=CurrentItem}">

which appeared to fix it.


Is this correct?

Note from the Author or Editor:
Yes. Fix as above.

Anonymous  Dec 29, 2010 
Printed
Page 309

Space needs to be removed from XML code
On page 309, the third line down in the XML code contains an unnecessary space in a property.



Change:

Setter Property=" Content" Value="Style set for all buttons" />To:

Microsoft Press  Jul 13, 2010 
Printed
Page 327

"Widtht" should be "Width" On page 327, the 7th line down in the first XML code contains an incorrectly spelled property. Change: Storyboard.TargetProperty="Widtht" />To: Storyboard.TargetProperty="Width" />

Microsoft Press  May 06, 2010 
Printed
Page 349

"color" should be "Color"
On page 349, in the 13th line of the C# code sample the word "color" should be capitalized.



Change:

private color ConvertColors(System.Drawing.Color aColor)To:private Color ConvertColors(System.Drawing.Color aColor)

Microsoft Press is committed to providing informative and accurate

books. All comments and corrections listed above are ready for

inclusion in future printings of this book. If you have a later printing

of this book, it may already contain most or all of the above corrections.

Microsoft Press  Jul 13, 2010 
Printed
Page 474
Answer to question 3

In answer for alternative A the order between NavigationProgress and Navigated are wrong. NavigationProgress occurs before Navigated.

In answer for alternative B which is marked as the correct answer,
this is only true if you change the order as described in the
confirmed errata for page 39. If you do the switch then alternative
B and C are equal and one can be deleted.

In answer for alternative C which is marked as incorrect should be
marked as correct and the explanation from alternative B should be
used.

Note from the Author or Editor:
Correct. Fix as above.

Anonymous  Sep 15, 2010