How to use command bindings in user controls in wpf?
- by Sam
In MainWindow the commandbinding works fine.
In UserControl1 it doesnt work. Note the datacontext is set correctly as is evidenced by the content of the button which is the result of a binding.
I am not trying to bind the command in the usercontrol to a command in mainwindow or any other such trickery. I am just trying to replicate what I did in…