5
shouts

C# Code Snippet to Create Commands with Attached Behaviors using Prism

posted by dschenkelmandschenkelman 218 days, 18 hours, 59 minutes ago
Wednesday, August 12, 2009 1:16:38 PM GMT

One of the most common questions we get at the Prism forums is of the type: “How do I execute my command when X happens?” (X not being a button being clicked ).  A sample of this type of question can be seen here, where a particular command needs to be executed whenever a textbox’s text changes. Our answer usually is that the user can create a command with an attached behavior. However, users are not always happy with this answer because of the complexity of having to create an attached behavior to hook...

category: Smart Client | clicked: 41 | | source: blogs.southworks.net | show counter code
tags: Attached behavior, P&P, Prism 2.0, Silverlight, WPF