MVVM (ICommand) in Silverlight

Posted by Andrey Khataev on Stack Overflow See other posts from Stack Overflow or by Andrey Khataev
Published on 2009-08-10T13:28:26Z Indexed on 2010/06/10 8:02 UTC
Read the original article Hit count: 319

Filed under:
|
|

Hello! Please, don't judge strictly if this question was discussed previously or indirectly answered in huge nearby prism and mvvm blogs. In WPF implementation of RelayCommand or DelegateCommand classes there is a such eventhandler

        	/// <summary>
	/// Occurs whenever the state of the application changes such that the result of a call to <see cref="CanExecute"/> may return a different value.
	/// </summary>
	public event EventHandler CanExecuteChanged
	{
		add { CommandManager.RequerySuggested += value; }
		remove { CommandManager.RequerySuggested -= value; }
	}

but in SL subset of namespaces there are no CommandManager class. And this is where I'm stuck. I haven't yet found an workaround for this in MVVM adoptation for SL (PRISM is so complex for me yet). Different simple HelloWorldMVVM apps don't deal with at all.

Thanks in advance and sorry for my English -)

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about mvvm