Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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]
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!
 
Old November 5th, 2010, 11:48 AM
Registered User
 
Join Date: Aug 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?




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





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