Commands in Task-It - Part 1
Posted
on Dot net Slackers
See other posts from Dot net Slackers
Published on Mon, 12 Apr 2010 00:00:00 GMT
Indexed on
2010/04/12
22:53 UTC
Read the original article
Hit count: 261
NOTE: To run the source code provided your will need to update to the RC (release candidate) versions of Silverlight 4 and VisualStudio 2010.
In recent blog posts, like my MVVM post, I used Commands to invoke actions, like Saving a record. In this rather simplistic sample I will talk about the basics of Commands, and in my next post will get deeper into it.
What is a Command?
I remember the first time a UI designer used the word "command" I wasn't really sure what she was referring to. I later realized that it is just a term that is used to represent some UI control that can invoke an action, like a Button, HyperlinkButton, RadMenuItem, RadRadioButton, etc.
Why should we use Commands?
I'm sure you're familiar with the code behind approach of handling events. For example, if you had a Button and a RadMenuItem that ...
Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
© Dot net Slackers or respective owner