public new bool? ShowDialog()
{
const int windowWidth = 510; //this.ActualWidth;
const int windowHeight = 295; //this.ActualHeight;
this.Topmost = true;
this.ShowActivated = false;
this.ShowInTaskbar = false;
this.ResizeMode = ResizeMode.NoResize;
//this.Owner = Application.Current.MainWindow;
this.Closed += this.DailyProductivityPopUp_OnClosed;
this.Left = SystemParameters.PrimaryScreenWidth - windowWidth;
var top = SystemParameters.PrimaryScreenHeight - windowHeight;
foreach (Window window in Application.Current.Windows)
{
var windowName = window.GetType().Name;
if (!windowName.Equals("DailyProductivityPopUp") || window == this) continue;
window.Topmost = true;
top = window.Top - windowHeight;
}
this.Top = top;
return base.ShowDialog();
}