[PR #574] [MERGED] Place message boxes at center of main window #1045

Closed
opened 2026-01-29 16:25:04 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/SabreTools/MPF/pull/574
Author: @Deterous
Created: 10/11/2023
Status: Merged
Merged: 10/11/2023
Merged by: @mnadareski

Base: masterHead: msgbox


📝 Commits (1)

  • bc8a9d3 Place message boxes at center of main window

📊 Changes

1 file changed (+5 additions, -5 deletions)

View changed files

📝 MPF.UI.Core/Windows/MainWindow.xaml.cs (+5 -5)

📄 Description

Provides the main window as the parent to the custom message boxes, such that they will be placed in the center of the main window, rather than in the center of the current screen.
This fixes cases such as when the "Eject" message box is hidden from users, behind other windows, or placed on secondary screens.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/SabreTools/MPF/pull/574 **Author:** [@Deterous](https://github.com/Deterous) **Created:** 10/11/2023 **Status:** ✅ Merged **Merged:** 10/11/2023 **Merged by:** [@mnadareski](https://github.com/mnadareski) **Base:** `master` ← **Head:** `msgbox` --- ### 📝 Commits (1) - [`bc8a9d3`](https://github.com/SabreTools/MPF/commit/bc8a9d34d7ab82f70194a80c9350e77df43be4d4) Place message boxes at center of main window ### 📊 Changes **1 file changed** (+5 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `MPF.UI.Core/Windows/MainWindow.xaml.cs` (+5 -5) </details> ### 📄 Description Provides the main window as the parent to the custom message boxes, such that they will be placed in the center of the main window, rather than in the center of the current screen. This fixes cases such as when the "Eject" message box is hidden from users, behind other windows, or placed on secondary screens. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 16:25:04 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SabreTools/MPF#1045