Maybe, at this time, parameter is null ?
Win4ster
2010-02-22 00:21:49
It seems that the RelayCommand will cast the value the parameter to the generic T.
But you cannot cast a null to a struct, as the exception tells you!
If you initialize the RelayCommand with a nullable struct, it will work as expected!
RelayCommand<int?> or RelayCommand<Nullable<int>>
HTH