Commands in Task-It - Part 2

Posted on Dot net Slackers See other posts from Dot net Slackers
Published on Mon, 19 Apr 2010 00:00:00 GMT Indexed on 2010/04/19 18:53 UTC
Read the original article Hit count: 353

Filed under:

Download Source Code

NOTE: To run the source code provided you will need the recently released versions of Silverlight 4 and VisualStudio 2010, as well as WCF RIA Services.

After downloading the source code be sure to set Commands2.Web as the StartUp Project and Default.aspx as the StartPage.

In my last post, Commands in Task-It - Part 1, we looked at a very simple solution that demonstrated how a single command instance (SaveCommand) could be bound to two UI controls, a Button and a RadTreeViewItem. In this example we'll get more complex, binding a single command instance (MoveToCommand) will be bound to multiple RadMenuItems in a RadContextMenu that is tied to a RadGridView. This time we'll also set a separate CommandParameter on each RadMenuItem, so when the command is invoked, we will be able to use that parameter to determine what to do next.

The user interface

This screen ...

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.



Email this Article

© Dot net Slackers or respective owner