I'm working on a Microsoft surface app in WPF using the MVVM design pattern.
I want to catch and handle an event for when a tag is placed on the surface. This is like a mousedown event except that information in contained about the contact in the event args (the type and value if it is a tag for instance). Because of the arg I can't do my (actually Josh Smith's) relaycommand workaround.
Any suggestions on handling events with parameters with MVVM?
Thanks in advance
Here is a sample of the code if it where to call event handlers in the code behind (Not really of any value ;)
<Rectangle Fill="Transparent"
s:Contacts.ContactDown="OnContactDown"
s:Contacts.ContactChanged="OnContactChanged"
s:Contacts.LostContactCapture="OnLostContactCapture">
</Rectangle>