Sorry about the last reply - was looking at the latest emails and didn't see this one indicating you fixed the get/set. I could be wrong but I don't think you'll be able to do what you want. I had tried something similar to this a while back and couldn't get it to work from xaml (in a controltemplate) and ended up having to create the animation in code. The problem I hit is that when the wpf framework seals the template they try to seal everything within the template - including animations which are freezables - and that throws an exception if any of the dp's of that freezable have expressions (i.e. bindings) associated with them.
-Andrew
Date: Fri, 16 May 2008 20:46:59 -0700
From: webfl...@yahoo.com
Subject: Re: Fixed part of my last request
To: wpf-di...@googlegroups.com
It's not the value that is freezable. The animation class (so the doubleanimation in this case) derives from freezable. It is the To property of that freezable class that you are attempting to set to a Binding. The problem really isn't related to the fact that the property to which you are binding is defined as attached or not. Again, maybe the problem you're having isn't the same one I did but it sounds quite similar and I do get the same exception with your setup if I use the following modified version of the animation in the storyboard.
<DoubleAnimation Duration="0:0:0.2" Storyboard.TargetName="imgScale"
Storyboard.TargetProperty="(ScaleTransform.ScaleX)"
To="{Binding Path=(local:ButtonExtraProps.ScaleTo), RelativeSource={x:Static RelativeSource.TemplatedParent}}"
AutoReverse="True"/>
Date: Sat, 17 May 2008 19:32:27 -0700
Please welcome Brennon Williams
Brennon he’s a great guy and book author (Expression Blend Unleashed) he know everything about Expression Blend J , a longtime member of Expression newsgroups.and owner of http://www.learnexpressionblend.com/ and http://x-coders.com/Default.aspx
Welcome mate!
Corrado
Corrado Cavalli wrote:
>
> Please welcome Brennon Williams
>
> Brennon he’s a great guy and book author (Expression Blend Unleashed)
> he know everything about Expression Blend J , a longtime member of
> Expression newsgroups.and owner of
> http://www.learnexpressionblend.com/ and http://x-coders.com/Default.aspx
>
> Welcome mate!
>
> Corrado
>
--
Laurent Bugnion [Microsoft MVP, MCP]
Software engineering, Blog: http://www.galasoft.ch
PhotoAlbum: http://www.galasoft.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Welcome Brennon. I love you Blend book.
Cheers,
Karl
Good idea sharing the MSN contact info. Mine is galas...@bluewin.ch
Actually, all my info can be found on my contact page
http://www.galasoft.ch/contact
Greetings,
Laurent
Hey Mike..
The book is on shelf on June 2 (or so say the publisher…) so Amazon should ship as well from that date… what a nightmare…
Even though I wrote this book on Blend.. I am still primarily a developer with better then average developer design skills.. I have my good days with art… then others I am back to stick figures L
I will upload the BIO shortly… which will tell the story of my twisted ways…
Cheers for the welcome!
Brennon Williams wrote:
>
>
>
> Even though I wrote this book on Blend..
>
It sounds rather difficult to write a book on Blend. I prefer Word for
my book :)
Cheers. Looking forward to get your book!
Laurent
No worries, my MSN address is public domain :)
Greetings,
Laurent
Marlon Grech wrote:
> guys.... may I please remind you that this is public.... so if you are
> sharing MSN contacts here, you are sharing it with the world.... if
> you want to then it is ok... but if you do not then it is another
> story :D just reminding you guys .....
>
> (Laurent if you want I can delete your msn address from public...)
>
> On Tue, May 20, 2008 at 6:08 PM, Brennon Williams
> <brennon...@x-coders.com <mailto:brennon...@x-coders.com>>
> wrote:
>
> Hey Mike..
>
>
>
> The book is on shelf on June 2 (or so say the publisher…) so
> Amazon should ship as well from that date… what a nightmare…
>
>
>
> Even though I wrote this book on Blend.. I am still primarily a
> developer with better then average developer design skills.. I
> have my good days with art… then others I am back to stick figures L
>
>
>
>
>
> I will upload the BIO shortly… which will tell the story of my
> twisted ways…
>
>
>
> Cheers for the welcome!
>
>
>
>
>
>
>
> *From:* wpf-di...@googlegroups.com
> <mailto:wpf-di...@googlegroups.com>
> [mailto:wpf-di...@googlegroups.com
> <mailto:wpf-di...@googlegroups.com>] *On Behalf Of *Mike Brown
> *Sent:* 20 May 2008 16:58
>
> *To:* wpf-di...@googlegroups.com
> <mailto:wpf-di...@googlegroups.com>
> *Subject:* Re: Another disciple into group
>
>
>
> Is it out yet? I've been checking for it on Amazon and they keep
> telling me that the book isn't available yet.
>
>
>
> Welcome aboard. You know you're not allowed to submit an entry
> into the Podder skinning competition...anyone who has written a
> book on Blend has too much of an advantage ;)
>
>
>
> Anyway, I'm looking forward to a lot of fun design threads now
> that we have more than one design guy in house!
>
>
>
>
>
>
>
> --
> Regards
> Marlon
> Blog - http://marlongrech.wordpress.com/
> WPF Controls Library - http://www.codeplex.com/avaloncontrolslib
>
> >
--
From: corrado...@gmail.com
To: wpf-di...@googlegroups.com
Subject: Another disciple into group
Date: Tue, 20 May 2008 07:06:52 +0200
Howdy Sacha,
As my first book, it will probably be slated by people like the Infomercial King… like you say.. cant win them all..
I am going to pretend that someone else wrote it and I bought the rights to my name on the cover… ;-)
From: brennon...@x-coders.com
To: wpf-di...@googlegroups.com
Subject: RE: Another disciple into group
Date: Tue, 20 May 2008 19:57:33 +0100
June 2nd is the release date Sacha. I have no idea if that means stockist will be shipping on that date, but it shouldn’t be far away as I know they have almost completed the print run now.
Thanks for the support!
Subject: RE: book
Date: Wed, 21 May 2008 16:48:04 +0100
A belated welcome to you also, Brennon!
I've heard of that Blend program... even installed it once... but then I couldn't figure out what it was for... guess I'll have to give it a try again now that we have the fellow who wrote the book on hand!
>
/>>
Dr. WPF - Online Office at http://www.drwpf.com/blog/
Thanks Doc.. nice to virtually meet you.
Cheers