Hi, I've created a WPF UserControl which contains a Button. I now want any consumer of the usercontrol to be able to set a Command property on the usercontrol, and for that command to be assigned to the button within the control. i.e. so that when the button is clicked, it runs the command (in this case a Prism DelegateCommand).
So, my UserControl looks like:
<UserControl>
<Button ...>
</UserControl>
and my consumer, I wish to look like:
<controls:ThreeStateImageButtonControl
Command="..." />