title: Unregister class handler from control - WPF
body: <p>I have registered the event handler for <code>GotFocusEvent</code> over the textbox in WPF.</p>
  
  <pre><code>EventManager.RegisterClassHandler(typeof(TextBox), TextBox.GotFocusEvent, new RoutedEventHandler(TextBox_GotFocus));
  </code></pre>
  
  <p>Now,Is there a way to remove the registered handler from textbox? </p>
  
  <p><strong>UPDATE:</strong>
  I checked the following link</p>
  
  <p><a href="https://stackoverflow.com/questions/7866458/wpf-custom-routed-events-how-to-unsubscribe">WPF Custom Routed Events - How to UnSubscribe?</a></p>
  
  <p>However, it didn't helped me since the mentioned control is custom control where as it is default <code>TextBox</code> control in my case.  </p>
  
  <p>I'm not able to find <code>RemoveHandler</code> in my case.  Any suggestions?</p>