public void ShowOnNotifiaction() { try { if (!NotificationView.IsVisible) { if (BuyNotifications.Count > 0) { double x = SystemParameters.PrimaryScreenWidth - NotificationView.Width; double y = SystemParameters.PrimaryScreenHeight - NotificationView.Height - 40; NotificationView.Left = x; NotificationView.Top = y; NotificationView.Activate(); NotificationView.Topmost = HotItemController.Config.IsTopMostNotification; // important if (HotItemController.Config.IsTopMostNotification) { NotificationView.Show(); } } } else { //NotificationView.Hide(); } } catch { } }