Using IMultiValueConverter to pass multiple CommandParameters to viewModel
问题 I have the following code: <DataGridTemplateColumn Header="Security"> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <Button Name="Security" Content="{Binding Path=totalSecurities}" Command="{Binding Source={StaticResource viewModel}, Path=filterGridCommand}"> <Button.CommandParameter> <MultiBinding Converter="{StaticResource PassThroughConverter}"> <Binding Path="sector"/> <Binding ElementName="Security" Path="Name"/> </MultiBinding> </Button.CommandParameter> </Button> </DataTemplate>