Example ImageTriggers - Implementation in XAML vs. Implementation in C#
I'm completely new to WPF. While studying the ImageTriggers-example in chapter 13, I was wondering, in which case it makes sense to implement events in XAML, and in which case it's better to implement them in the C#-Code. (For example, in the ImageTriggers-example, you could also implement the behaviour in the .xaml.cs- File instead of the .xaml-File.)
Is there any rule, when to make event-implementations in code and when in xaml?
Last edited by Skyshaper; August 31st, 2010 at 08:36 AM.