The ICommand
interface is part of the commanding system in Silverlight and is usually recognizable alongside the Model-View-ViewModel (MVVM) pattern. The MVVM pattern aids the developer to separate the UI layer (View) from the code layer (Model) using a connector in between (ViewModel). The commanding system allows us to wire business logic functionality directly to buttons on the UI layer using XAML. Now, you may be thinking that we can already do that using event handlers and writing code in the code behind file of our XAML, and you would be right. But think about a scenario where you have to use the button logic elsewhere in the application. You will need to write another even handler for the new button, copy the logic over from the old one, and wire the Click
event of the new button to the new handler. Instead, by using the commanding system, you can bind a command to a button. The command logic is placed in the ViewModel layer, which means that any button on the...
MCTS: Microsoft Silverlight 4 Development (70-506) Certification Guide
By :
MCTS: Microsoft Silverlight 4 Development (70-506) Certification Guide
By:
Overview of this book
Microsoft Silverlight is a powerful development platform for creating engaging, interactive applications for many screens across the Web, desktop, and mobile devices. Silverlight is also a great (and growing) Line-Of-Business platform and is increasingly being used to build data-driven business applications. Silverlight is based on familiar .NET languages such as C# which enables existing .NET developers to get started developing rich internet applications almost immediately. "MCTS: Microsoft Silverlight 4 Development (70-506) Certification Guide" will show you how to prepare for and pass the (70-506): TS: Microsoft Silverlight 4 Development exam.Packed with practical examples and Q&As, MCTS: Microsoft Silverlight 4 Development (70-506) Certification Guide starts by showing you how to lay out a user interface, enhance the user interface, implement application logic, work with data and interact with a host platform amongst others.
Table of Contents (15 chapters)
MCTS: Microsoft Silverlight 4 Development (70-506) Certification Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Overview of Silverlight
Laying out Our User Interface
Enhancing the User Interface
Implementing Application Logic
Working with Data
Interacting with the Host Platform
Structuring Applications
Deploying Applications
Test Your Knowledge — Answers
Customer Reviews