You could create a custom animation and add an eventhandler to it or use a command as dependency property. For a codeproject example of a custom animation look at this link .
Up vote 0 down vote favorite share g+ share fb share tw.
In my WPF application, I have the standard Generic. Xaml file, which contains a style for my custom class, Frost. I need to find a way to hook up the Completed event of one of the animations to my custom Frost class, I cannot do it at runtime because it complains at me that I need to set IsFrozen to false which I do not want to do (because of performance).
How can I hook up events to the TargetType of the control template? Wpf events animation controltemplate link|improve this question edited Nov 6 '09 at 3:52Drew Marsh12.2k1827 asked Nov 6 '09 at 2:42Mark3,90031560 70% accept rate.
I cannot do it at runtime because it complains at me that I need to set IsFrozen to false which I do not want to do (because of performance). " Frozen objects offer better performance, so I'm not sure what you mean by that. – Drew Marsh Nov 6 '09 at 3:06 frozen objects do not make as munch of a memory footprint and are thread safe... which is also important, correct me if Im wrong of course – Mark Nov 6 '09 at 4:06 That's correct, but you seem to be saying that you don't want to freeze your objects for performance reasons...? Freezing would improve performance AND let you hook the event.
– Drew Marsh Nov 6 '09 at 16:00 I may have miss lead you, but you cannot add an event if its frozen, I don't want to un-freeze it because it performs better frozen. – Mark Nov 6 '09 at 22:43.
You could create a custom animation and add an eventhandler to it or use a command as dependency property. For a codeproject example of a custom animation look at this link.
I might have to do that I think – Mark Nov 6 '09 at 22:40.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.