Aug 2, 2010 at 1:47 PM


I'm learning Caliburn.Micro.

I am wanting to trigger an action on a particular key press in XAML. In my browsing around, I notice that Caliburn - I haven't learned that - has gestures which it appears would give me my solution, but looking thru the Caliburn.Micro source, am I right in thinking that this feature is not present in the Micro version? 

Is there another way of implementing this in xaml rather than code?




Aug 2, 2010 at 2:45 PM

Micro does not have any OOTB support for gestures. However, the actions mechanism is based on System.Window.Interaction. So to add this, you would create a new trigger that inherits from TriggerBase and wires up a gesture as the trigger. Try searching around. It's possible that someone has already created such a trigger and you could then just plug it into CM.

Aug 2, 2010 at 2:50 PM