private void DailyProductivityPopUp_OnClosed(object sender, EventArgs e)
{
foreach (Window window in Application.Current.Windows)
{
var windowName = window.GetType().Name;
if (!windowName.Equals("DailyProductivityPopUp") || window == this) continue;
// Adjust any windows that were above this one to drop down
if (window.Top < this.Top)
{
window.Top = window.Top + this.ActualHeight;
}
}
}