protected virtual void OnClosed(EventArgs e)
{
this.FloatingWindowHost.Remove(this);
this.FloatingWindowHost.ActivateTopmostWindow();
UnsubscribeFromStoryBoardEvents();
EventHandler handler = Closed;
if (handler != null)
{
handler(this, e);
}
Dispose();
}