C# Code Snippet to Create Commands with Attached Behaviors using Prism(blogs.southworks.net)
submitted by
dschenkelman(450) 2 years, 6 months ago
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 up the command.
For this reason, with the help of Matias Bonaventura, and Diego Poza’s Snippet Creator tool and this group of MSDN sites we created a code snippet that will enable developers to easily create this commands with attached behaviors...
|category: Windows Presentation Foundation
|Views: 97
tags:
WPF another
Everyones tags:
Your Tags: