dimanche 10 mai 2015

Class derived from ICommand with parameters

I have the following property:

public ICommand ApplySelectedSearchResultCommand { get { return new RelayCommand(ApplySelectedSearchResult, IsSearchResultSelected); } }

The class RelayCommand is a class from a MVVM-mini-"framework" which is derived from ICommand.

However my method ApplySelectedSearchResult which was without parameters so far has changed and contains to parameters now:

protected abstract void ApplySelectedSearchResult(Model primaryModel, Model secondaryModel);

How to change my property?

Aucun commentaire:

Enregistrer un commentaire