Possible Duplicate:
Passing two command parameters using a WPF binding
I need that send two parameters to my RelayCommand like:
public RelayCommand<String,Int> MyCommand {get;set;} Or
public RelayCommand<EventArgument,String> MyCommand {get;set;}
Wrap them in an object:
public RelayCommand<MyModel> MyCommand { get; set; }
where MyModel will contain the two properties:
public class MyModel
{
public int Id { get; set; }
public string Name { get; set; }
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With