private double getDesiredTopPosition() { if (Settings.Instance.TaskbarPosition == 1) { // set to bottom of this display's menu bar return((Screen.Bounds.Y / dpiScale) + AppBarHelper.GetAppBarEdgeWindowsHeight(appBarEdge, Screen)); } else { // set to bottom of workspace return((Screen.Bounds.Bottom / dpiScale) - Height - AppBarHelper.GetAppBarEdgeWindowsHeight(appBarEdge, Screen)); } }