I have a custom control that has an event.
I have a window using that custom control.
The window is bound to a viewmodel.
I would like to have the event from the custom control direct to an ICommand on my viewmodel.
I am obviously being dense here as I can’t figure out how to do this. Any assistance is most welcome.
Thanks
If you want to route an event to a command you can use an attached property. I used this example to add command support to a ComboBox SelectionChanged event:
http://blog.fossmo.net/post/How-to-create-an-attached-property-in-WPF-using-a-ComboBox.aspx
Cheers.