I would like to pass a parameter defined in the XAML (View) of my application to the ViewModel class by using the RelayCommand. I followed Josh Smith\'s excellent article o
I don't understand why you have the extra complexity of specifying the lambda in the first place. Why not just do this:
if (_aCommandWithAParameter == null) { _aCommandWithAParameter = new RelayCommand(CommandWithAParameter); } private void CommandWithAParameter(object state) { var str = state as string; }