title: Using IMultiValueConverter to pass multiple CommandParameters to viewModel
body: <p>I have the following code:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;DataGridTemplateColumn Header=&quot;Security&quot;&gt;
      &lt;DataGridTemplateColumn.CellTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;Button Name=&quot;Security&quot; Content=&quot;{Binding Path=totalSecurities}&quot;
                      Command=&quot;{Binding Source={StaticResource viewModel}, Path=filterGridCommand}&quot;&gt;
                  &lt;Button.CommandParameter&gt;
                      &lt;MultiBinding Converter=&quot;{StaticResource PassThroughConverter}&quot;&gt;
                          &lt;Binding Path=&quot;sector&quot;/&gt;
                          &lt;Binding ElementName=&quot;Security&quot; Path=&quot;Name&quot;/&gt;
                      &lt;/MultiBinding&gt;
                  &lt;/Button.CommandParameter&gt;
              &lt;/Button&gt;
          &lt;/DataTemplate&gt;
      &lt;/DataGridTemplateColumn.CellTemplate&gt;
  &lt;/DataGridTemplateColumn&gt;
  </code></pre>
  <p>Below is the code for PassThroughConverter:</p>
  <pre class="lang-cs prettyprint-override"><code>public class PassThroughConverter : IMultiValueConverter
  {
      public object Convert(object[] values, Type targetType, object parameters, CultureInfo culture)
      {
          return values;
      }
  
      public object[] ConvertBack(object value, Type[] targetType, object parameter, CultureInfo culture)
      {
          throw new NotImplementedException();
      }
  }
  </code></pre>
  <p>When I debug as soon as it hits the return values line, the correct values are in the array
  but when i press the button that triggers the filtergridcommand, the values returned are both null? Can anyone help. Thank you.</p>