Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > BOOK: Professional Silverlight 4
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Professional Silverlight 4
This is the forum to discuss the Wrox book Professional Silverlight 4 by Jason Beres, Bill Evjen, Devin Rader; ISBN: 978-0-470-65092-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Silverlight 4 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 4th, 2010, 06:53 PM
Registered User
Join Date: Aug 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Problem with Snippet 6-2

Running Snippet 6-2 gives the following exception detail:

System.Windows.Markup.XamlParseException occurred
Message=Set property 'System.Windows.Controls.TextBox.Watermark' threw an exception. [Line: 12 Position: 51]
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at Chapter6.Views.Snippet0602.InitializeComponent()
at Chapter6.Views.Snippet0602..ctor()
InnerException: System.NotImplementedException
Message=The method or operation is not implemented.
at System.Windows.Controls.TextBox.set_Watermark(Obje ct value)

  #2 (permalink)  
Old November 5th, 2010, 11:48 AM
Registered User
Join Date: Aug 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts

I figured out the problem. I wasn't distinguishing the snippets from the listings. I wanted to run listing 6-2 and was instead running snippet 6-2. Running listing 6-2 ran just fine. I also now see why snippet 6-2 failed ... it was supposed to fail because it was trying out watermark which your text indicated should not be used.

I didn't see the snippets mentioned in the text. Is that just extra test cases you created to supplement the text?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code Snippet Box Sandy_M PHP How-To 1 April 16th, 2010 01:48 PM
how to run code snippet in regular interval Swati Chari Beginning VB 6 2 March 12th, 2008 03:07 PM
possibly C++ snippet of code crmpicco C++ Programming 1 July 1st, 2006 08:46 PM
Code snippet error on page 370 cebartling BOOK: Professional Java Development with the Spring Framework 0 September 18th, 2005 10:00 PM

All times are GMT -4. The time now is 07:01 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.