Hi
I am using MVVM light to bind events on UIElements in my View to ICommands in my view model, and this is working very well.
However - I have a situation where I have to create some controls on the fly, and I'm doing this in the code behind on the view as this seems the best place to do it, and it is after all UI code. As I am generating these controls in the code, I also need to create the event bindings in the code and, despite several attempts, I have not acheived the desired result.
Has anybody done this or does anybody know how to?
Any help appreciated!