I'm getting started with Metro style applications (I know we're not supposed to call it Metro, but I can never remember what it's supposed to be called...), and I'm implementing a DelegateCommand
class for use in MVVM. In WPF, the ICommand.CanExecuteChanged
event is typically implemented like this:
public event EventHandler CanExecuteChanged
{
add { CommandManager.RequerySuggested += value; }
remove { CommandManager.RequerySuggested -= value; }
}
But the CommandManager
class does not exist in WinRT... Is there something else instead? Or are we supposed to explicitly trigger this event ourselves?