C# Code Snippet to Create Commands with Attached Behaviors using Prism(blogs.southworks.net)

submitted by dschenkelmandschenkelman(450) 2 years, 9 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...

add a comment |category: |Views: 107

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story