1 / 7

Enabling Commands in Silverlight

Enabling Commands in Silverlight. Mahender Senior Software Engineer United Health Group. Mahender Sarangam.

denis
Télécharger la présentation

Enabling Commands in Silverlight

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Enabling Commands in Silverlight Mahender Senior Software Engineer United Health Group

  2. Mahender Sarangam • Having 5 years of experience on .NET Technologies. Working as a Senior Software Engineer in United Health Group (UHG India Information Service Ltd.). Worked with Big Firms like Deloitte Consulting & Wipro Technology. • Got Technical Acquaintance on Technologies like C#, ASP.NET,AJAX, LINQ, Silverlight, WPF,WCF ,SQL Server, Team Foundation Server(TFS) and SharePoint Technology. • MCTS Certified in Web Technologies. • Blog : http://Msarangam.wordpress.com

  3. Commands • One of the great advantages to commanding is encapsulation • Silverlight 4 now came up with the support of Command Binding. Using Command binding you can easily develop your Silverlight MVVM

  4. Commands are supported by only two element classes: Hyperlink and ButtonBase (although several button-like controls derive from ButtonBase). • Commands work through two properties that have been added to the Hyperlink and ButtonBaseclass: Command and Command Parameter. • The Command is the action that will be triggered when the button click takes place • The CommandParameter is a single object that will be passed to the command, with additional information. • Need to implement ICommand Interface

  5. ICommand Interface • ICommand interface features the following three members: • Execute(object parameter) - Called whenever the command is activated. The parameter is optional. • CanExecute(object parameter) - This method is called to determine whether the command can execute at the current time. The main feature of this is the command source can disable itself if its command cannot be executed. • event CanExecuteChanged - The command should raise this event whenever it's ability to be executed has changed.

  6. Thank you

More Related