Go To Homepage



Book Details
Pro Silverlight 2 in C# 2008 book cover
  • By Matthew MacDonald
  • ISBN13: 978-1-59059-949-5
  • ISBN10: 1-59059-949-7
  • Interior Color: Full Color
  • 640 pp.
  • Published Nov 2008
  • Print Book Price: $49.99
  • eBook Price: $34.99



Errata Submission

If you think that you've found an error in Pro Silverlight 2 in C# 2008, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.

Submit Errata
Pro Silverlight 2 in C# 2008 (978-1-59059-949-5)

Errata

Issue Author's Response
On page 144, the following code does not compile. Because ToolTip property only exists for Button class in WPF, not in Silverlight:

<Button Content="I have a fancy tooltip">
<Button.ToolTip>
<ToolTip Background="DarkRed" Foreground="White">
<StackPanel>
<TextBlock Margin="3" Text="Image and text"></TextBlock>
<Image Source="happyface.jpg"></Image>
<TextBlock Margin="3" Text="Image and text"></TextBlock>
</StackPanel>
</ToolTip>
</Button.ToolTip>
</Button>
On page 144, code:
<Button.ToolTip>
should be:
<ToolTipService.ToolTip>
and
</Button.ToolTip>
should be:
</ToolTipService.ToolTip>
Chapter 3, Page 94:

You say "The actual code that’s used in the examples is a bit different, because it needs to work for all buttons", but there are no buttons involved here. I think you meant to say "different types of controls", instead of "all buttons".
Chapter 3, Page 94:

"The actual code that’s used in the examples is a bit different, because it needs to work for all buttons" should be "The actual code that’s used in the examples is a bit different, because it needs to work for different types of controls"
Chapter 9, page 260

<DoubleAnimation Storyborad.TargetElement= ...

Storyboard has no attached property TargetElement
Chapter 9, page 260

<DoubleAnimation Storyborad.TargetElement=
should be:
<DoubleAnimation Storyborad.TargetName=
Chaper 11, page 335
This style object holds a Setters collection with three ?? Setter objects, one...
Chaper 11, page 335
"This style object holds a Setters collection with three Setter objects" should be "This style object holds a Setters collection with several Setter objects"
Chapter 3, page 95

Silverlight has no Visibility.Hidden but a Visibility.Collapsed
Chapter 3, page 95

Visibility.Hidden should be Visibility.Collapsed
Chapter 11, page 374:

In the code sample for the method cmdExpandCollapseButton_Click() (started on previous page) the final line is the method call:

ChangeVisualState(useTransitions);

The variable being passed in, useTransitions, doesn't actually exist in the method but rather is the name of the input parameter for the method ChangeVisualState. The correct call should be:

ChangeVisualState(false);
Chapter 11, page 374, first line of code:
ChangeVisualState(useTransitions);
should be:
ChangeVisualState(false);
Chapter 8, page 223
To create a side-to-side vertical fill(...)... and an end point of (1,0) for the ***top-right*** corner
Chapter 8, page 223
"To create a side-to-side vertical fill (with no slant), you can use a start point of (0, 0) and an end point of (1, 0) for the top-left corner." should be "To create a side-to-side vertical fill (with no slant), you can use a start point of (0, 0) and an end point of (1, 0) for the top-left corner."
chap 15, page 506, two errors in code:
(it does not compile)
1) the FileDialogFileInfo has been removed - use System.IO.FileInfo instead:
foreach (FileDialogFileInfo file in dialog.Files)
-- change to ->
foreach (System.IO.FileInfo file in FileDialog.Files)

2) typo "int count already declared".
int count = fileStream.Read(buffer, 0, buffer.Length);
-- change to ->
count = fileStream.Read(buffer, 0, buffer.Length);
chap 15, page 506, two errors in code:
1)
foreach (FileDialogFileInfo file in dialog.Files)
-- change to ->
foreach (System.IO.FileInfo file in FileDialog.Files)

2)
int count = fileStream.Read(buffer, 0, buffer.Length);
-- change to ->
count = fileStream.Read(buffer, 0, buffer.Length);