title: Find what event handler has been assigned to an event on an object WPF
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/136975/has-an-event-handler-already-been-added">Has an event handler already been added?</a>  </p>
  </blockquote>
  
  
  
  <p>Firstly I know there are a number of simmilar questions but I am having trouble adapting them to my situation. </p>
  
  <p>I would like to be able to find out which event handler is assigned for a paticular event on an object. So on a treeviewitem, i will have assigned a handler for the expanded event. I would then at a later date like to be able to pull the assigned event handler out and assign that to another treeviewitems expanded event so they both call the same handler on the expanded event. </p>
  
  <p>Is this possible? </p>
  
  <p>Heres what I want to be able to do...</p>
  
  <pre><code>private void duplicateHandler( TreeViewItem existingItem )
  {
      TreeViewItem tvi = new GX3TreeViewItem();
  
      tvi.AddHandler(TreeViewItem.ExpandedEvent, existingItem.ExpandedEventHandler);
  }
  </code></pre>