title: Cannot implicitly convert type 'System.EventHandler' to 'System.EventHandler<object>' for storyboard complete
body: <p>I have read already a few threads about this, but I still don't know how to solve it in my case. I come from Java and mostly new to C#</p>
  
  <p>I want to attach listener when animation finishes:</p>
  
  <pre><code>myStoryBoard.Completed += new EventHandler(onMyStoryBoardCompleted);
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>private void onMyStoryBoardCompleted(object sender, EventArgs e)
  {       
  }
  </code></pre>
  
  <p>And I get the error in the title. I tried:</p>
  
  <pre><code> myStoryBoard.Completed += new EventHandler&lt;object&gt;(onMyStoryBoardCompleted);
  </code></pre>
  
  <p>But then I get:</p>
  
  <pre><code>no overload for 'onMyStoryBoardCompleted' matches delegate 'System.EventHandler&lt;object&gt;'
  </code></pre>
  
  <p>So it seems that the signature is not compatible with EventHandler<code>&lt;object&gt;</code> and I couldn't find how to make it compatible, I also don't know if this approach is correct.</p>
  
  <p>I read</p>
  
  <p><a href="https://stackoverflow.com/questions/803242/understanding-events-and-event-handlers-in-c-sharp">Understanding events and event handlers in C#</a></p>
  
  <p><a href="https://stackoverflow.com/questions/2073965/c-sharp-dynamic-template-implicit-conversion-error-from-system-eventhandler-to-s">C# Dynamic template implicit conversion error from System.EventHandler to System.EventHandler&lt;TEventArgs&gt;</a></p>
  
  <p><a href="https://stackoverflow.com/questions/10464374/defining-event-handler-for-tick-event-of-dispatchertimer-in-windows-8-app">defining event handler for Tick event of DispatcherTimer in windows 8 app</a></p>
  
  <p>But still don't find the solution for this case.</p>
  
  <p>Thanks in advance.</p>