Errata


Print Print Icon

Submit your own errata for this product.


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



Version Location Description Submitted By
Printed Page 9
Example 2-1

The content of MyApp.xaml is incorrect, as it specifies a NavigationWindow object, rather than an
Application object. (At the least, with the RTM version of the Windows SDK and .NET 3.0, this will not
compile.)

The correct content should be something like the following:

<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="Page1.xaml"
/>

Anonymous 
Printed Page 12
7th paragraph (project file example)

The project file presented appears to be written so as to allow the compilation of the sample
application outlined on the preceding pages (i.e., "MyApp.xaml" and "Page1.xaml"). However, the
"TargetType" specification is a list of all possible target types, rather than being a single supported
type (e.g., "winexe"), and the "WindowsUIAutomation" reference inclusion appears not to exist in the RTM
Windows SDK/.NET 3.0.

A corrected version of this file (which works with the RTM Windows SDK) would be as follows:

<?xml version='1.0' encoding='utf-8'?>
<Project
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<AssemblyName>MyFirstApplication</AssemblyName>
<TargetType>winexe</TargetType>
<OutputPath>.</OutputPath>
</PropertyGroup>

<Import Project="$(MSBuildBinPath)Microsoft.CSharp.targets" />
<Import Project="$(MSBuildBinPath)Microsoft.WinFX.targets" />

<ItemGroup>
<ApplicationDefinition Include="MyApp.xaml" />
<Page Include="Page1.xaml" />
</ItemGroup>

<ItemGroup>
<Reference Include="System">
<Private>false</Private>
</Reference>
<Reference Include="System.Xml">
<Private>false</Private>
</Reference>
<Reference Include="System.Data">
<Private>false</Private>
</Reference>
<Reference Include="WindowsBase">
<Private>false</Private>
</Reference>
<Reference Include="PresentationCore">
<Private>false</Private>
</Reference>
<Reference Include="PresentationFramework">
<Private>false</Private>
</Reference>
<Reference Include="UIAutomationProvider">
<Private>false</Private>
</Reference>
</ItemGroup>

</Project>

Anonymous 


"This well-organized handbook delivers precisely what I am looking for in my projects. As its title implies, referencing this book is just like cracking a hard nut to reach its rich contents."
--Vivek Vaishampayan, Technical Communication