Executing code in DataContext

  • Introduce an ICommand-based property in the DataContext and bind it to the Command property of button-based controls. Third-party frameworks also support binding them to element's events.
  • Support parameters which support data binding.
  • Commands can be bound to key and mouse gestures.

Get MVVM Survival Guide for Enterprise Architectures in Silverlight and WPF now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.