You can use a separate model class to pass in several parameters. And to initialize them, you can use xaml elements like this:
<Button Command="{Binding YourCommand}"> <Button.CommandParameter> <YourNS:YourModel Id="{Binding PathForId}" Name="{Binding PathForName}"/> </Button.CommandParameter> </Button>
This will create a new MyModel object to pass the command to, and then initialize its properties using bindings.
source share