Wrox Programmer Forums
|
BOOK: Beginning Visual C# 2010
This is the forum to discuss the Wrox book Beginning Visual C# 2010 by Karli Watson, Christian Nagel, Jacob Hammer Pedersen, Jon D. Reid, Morgan Skinner, ; ISBN: 9780470502266
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual C# 2010 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 December 20th, 2011, 10:48 AM
Authorized User
 
Join Date: Dec 2011
Posts: 23
Thanks: 3
Thanked 0 Times in 0 Posts
Default Chapter 25 Page 874

I tried to run the code snippet at the top. I get:

Quote:
Error 1 Key attribute can be used only on a tag contained in an IDictionary type property.
How can I get it to run?
 
Old January 8th, 2012, 04:32 PM
Wrox Author
 
Join Date: Sep 2010
Posts: 175
Thanks: 3
Thanked 53 Times in 53 Posts
Default

Do you mean this code?
Code:
<Trigger Property="MyBooleanValue" Value="true">
  <Setter Property="Opacity" Value="0.5" />
</Trigger>
Where did you place this XAML fragment to? As the text explains, you need to place this within the Triggers property of a control that has a property named MyBooleanValue.
Use the code segment that follows for a concrete sample.
__________________
Christian
CN innovation
Visit my blog at: csharp.christiannagel.com
Follow me on twitter: @christiannagel
The Following User Says Thank You to ChristianNagel For This Useful Post:
Frodo (January 9th, 2012)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 25 page 864 Frodo BOOK: Beginning Visual C# 2010 0 December 17th, 2011 01:38 PM
Chapter 25 Code Pankajh_mishra BOOK: Professional C# 2005 with .NET 3.0 ISBN: 978-0-470-12472-7 0 March 18th, 2010 02:44 AM
Missing Chapter 25 cir306 BOOK: Professional Microsoft SQL Server 2008 Programming 0 September 10th, 2009 11:38 PM
chapter 25 -sample code LouMattera BOOK: Professional C#, 2nd and 3rd Editions 3 February 13th, 2005 06:39 AM





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