title: What event is fired when a UserControl is displayed?
body: <p>I'm trying to add a fade effect (animation) for WPF <code>UserControls</code> (although rather for <code>FrameworkElement</code>, to make it more general). </p>
  
  <p>If I let the <code>Loaded</code> event trigger the initial fade-in, the fade animation will sometimes have started before the UserControl has been displayed. The result is a mess. That happens for example if the UserControl does something lengthy (a few tenths of a second), like execute a query, in the Loaded event handler.</p>
  
  <p>So, I would need to handle some event that FrameworkElement/UserControl gets when the content has been rendered, and start the fade-in then. The <code>System.Windows.Window</code> has a <code>ContentRendered</code> event, but UserControl has not. So, what event is fired when a FrameworkElement (or UserControl) has been rendered?</p>