title: Find host from ItemContainerGenerator.itemChanged Event
body: <p>I'm working on C# 4.0, WPF. I have three ListView, and all three controls have the same ItemContainerGenerator_ItemsChanged" event handler. So my problem is that I want to find the host <code>ListView</code> from within the event handler.</p>
  
  <pre><code>lst1.ItemContainerGenerator.ItemsChanged += new System.Windows.Controls.Primitives.ItemsChangedEventHandler(ItemContainerGenerator_ItemsChanged);
  
  lst2.ItemContainerGenerator.ItemsChanged += new System.Windows.Controls.Primitives.ItemsChangedEventHandler(ItemContainerGenerator_ItemsChanged);
  
  lst3.ItemContainerGenerator.ItemsChanged += new System.Windows.Controls.Primitives.ItemsChangedEventHandler(ItemContainerGenerator_ItemsChanged);
  
  
  void ItemContainerGenerator_ItemsChanged(
      object sender,
      System.Windows.Controls.Primitives.ItemsChangedEventArgs e)
      {
          //TODO: Find ListView instance.
          // **REAL Problem**
          // ListViewItem's Visible property has been set based on the deletion
          // button click, so at one place i have to get the count of rows which
          // are visible and proceed with related buttons enable/disable operation.
      }
  </code></pre>