4
Shouts

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

published 1098 days, 11 hours, 10 minutes ago posted by jmix90jmix90 1099 days, 11 hours, 12 minutes ago
Thursday, June 17, 2010 1:36:18 PM GMT Wednesday, June 16, 2010 1:34:47 PM GMT

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.

category: Smart Client | clicked: 4 | | source: blog.lexique-du-net.com | show counter code
tags: tricks, Command, Attached behavior, How-To, routed commands, Dependency Property, WPF, how to, Behavior, How, Tips, Tips & Tricks.

No comments yet, be the first one to post comment.

To post your comment please login or signup