views:

9

answers:

2

I want to create an own event (which I'll fire via code) for a CustomControl via XAML.

This would allow me to add a trigger for an animation which I create in XAML.

A: 

see this

CommanderZ
Thats a very nice and short explanation.Can I also register an event via XAML?
Hedge
A: 

You can't define the events of a control in the xaml, you must do this in code behind, its the same as you cant define members of the control on xaml.

Chen Kinnrot