title: Calling method on SelectionChanged ListBox event with the selected item as parameter
body: <p>I'm trying to call a method which fills a table with data according to the ListBoxItem that has been selected.</p>
  <pre class="lang-cs prettyprint-override"><code>// Setting the ListBoxItems
  myListBox.ItemsSource = list;
  // Calling the method when the ListBox's selection changes
  myListBox.SelectionChanged += LbItem_Select;
  </code></pre>
  <p>The above snippet can't work because the <code>LbItem_Select</code> event handler doesn't get as a parameter the item that is currently selected.</p>
  <p>This is the event handler:</p>
  <pre class="lang-cs prettyprint-override"><code>private void LbItem_Select(object sender, RoutedEventArgs e)
  {
      var lbItem = sender as ListBoxItem;
      lbItemContent = lbitem.Content.ToString();
      // fill the table according to the value of lbItemContent
  }
  </code></pre>
  <p>How could I achieve this?</p>