title: Multiple command parameters wpf button object
body: <p>How can I send multiple parameters from <code>Button</code> in <code>WPF</code>? I am able to send single parameter which is value of <code>TextBox</code> properly. Here is the code.</p>
  
  <p><code>XAML</code></p>
  
  <pre><code>&lt;TextBox Grid.Row="1" Height="23" HorizontalAlignment="Left" Margin="133,22,0,0"     Name="textBox1" VerticalAlignment="Top" Width="120" /&gt;
  &lt;Button Content="Button" Grid.Row="1" Height="23" Command="{Binding Path=CommandClick}" CommandParameter="{Binding Text,ElementName=textBox1}" HorizontalAlignment="Left" Margin="133,62,0,0" Name="button1" VerticalAlignment="Top" Width="75" /&gt;
  </code></pre>
  
  <p><code>Code behind</code></p>
  
  <pre><code>public ICommand CommandClick { get; set; }
  
  this.CommandClick = new DelegateCommand&lt;object&gt;(AddAccount);
  
  private void AddAccount(object obj)
  {
      //custom logic
  }
  </code></pre>