in src/dotnet/JetBrains.PresentationAssistant/FadingWpfPopupWindow.cs [37:50]
protected override void HideWindowCore()
{
var animation = new DoubleAnimation(0, Duration);
EventHandler handler = null;
handler = (s, e) =>
{
window.Hide();
FireClosed();
animation.Completed -= handler;
};
animation.Completed += handler;
window.BeginAnimation(UIElement.OpacityProperty, animation);
}