Execute a command on a specified control when clicking on a button

added by jmix90
6/16/2010 8:36:23 AM

0 Kicks, 32 Views

Today another example of the powerful ramora pattern : execute a RoutedCommand on an Control when you click on a button outside of the aimed control scope. Our implementation will also show *how we can apply the "Weak Events pattern" with the dependency property trick *(attached property / ramora pattern). And of course this example can be adapted to subscribe on any event you wants and not only the click of a button.


0 comments