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
Register
Register | FAQ | Members List | Calendar | 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 Display Modes
  #1 (permalink)  
Old November 4th, 2010, 07:53 PM
Registered User
 
Join Date: Sep 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]
LineNumber=12
LinePosition=51
StackTrace:
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.
StackTrace:
at System.Windows.Controls.TextBox.set_Watermark(Obje ct value)
InnerException:

Help!
  #2 (permalink)  
Old November 5th, 2010, 12:48 PM
Registered User
 
Join Date: Sep 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
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 02:48 PM
how to run code snippet in regular interval Swati Chari Beginning VB 6 2 March 12th, 2008 04:07 PM
possibly C++ snippet of code crmpicco C++ Programming 1 July 1st, 2006 09:46 PM
Code snippet error on page 370 cebartling BOOK: Professional Java Development with the Spring Framework 0 September 18th, 2005 11:00 PM



All times are GMT -4. The time now is 03:14 AM.


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