title: How to know if the UserControl is active other than using IsFocused
body: <p>I am working on a WPF project, and I am trying to fire an event every time some userControls get active or inactive.</p>
  
  <p>These userControls have many other controls inside of them.</p>
  
  <p>I tried to achieve this using the userControl events <code>GotFocus</code> and <code>LostFocus</code>, but these events are not working in the way I need since the userControl loses the focus when I work with controls inside of it.</p>
  
  <p>So, my question is: <strong>Is there a way to mantain a userControl as <code>Active</code> while the user works with controls inside of it, and, when the user goes to another userControl this first one gets <code>Inactive</code>???</strong></p>
  
  <p>Thank you in advance.</p>