title: WPF How to know the current button pressed among multiple buttons
body: <p>I am having multiple buttons with contents 1, 2, 3, 4, 5... like this. All buttons are using same function on <strong>Click</strong> event. </p>
  
  <pre><code>&lt;Button Content="1" Height="30" Name="button1" Width="30" Click="calculate"/&gt;
  &lt;Button Content="2" Height="30" Name="button2" Width="30" Click="calculate"/&gt;
  &lt;Button Content="3" Height="30" Name="button3" Width="30" Click="calculate"/&gt;
  &lt;Button Content="4" Height="30" Name="button4" Width="30" Click="calculate"/&gt;
  &lt;Button Content="5" Height="30" Name="button5" Width="30" Click="calculate"/&gt;
  </code></pre>
  
  <p>How could i know which button is pressed in <strong>calculate</strong> function ? I want to get the content from the button which is pressed.</p>
  
  <pre><code>private void calculate(object sender, RoutedEventArgs e)
          {
  
          }
  </code></pre>
  
  <p>Thank You.</p>