HandyOrg / HandyOrg/HandyControl
MessageBox 无法设定为屏幕中心
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.2k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
CreateMessageBox,在Owner设定为null的情况下,会自动获取一个当前进程的窗口作为Owner,
造成了WindowStartLocation不能处于屏幕中心。
Steps to reproduce the bug
~
Expected behavior
No response
Screenshots
No response
NuGet package version
None
IDE
No response
Framework type
No response
Windows version
No response
Additional context
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at src/Shared/HandyControl_Shared/Controls/Window/MessageBox.cs around line 453 and inspect how CreateMessageBox handles a null Owner and WindowStartLocation. Reproduce the case with Owner set to null, then verify that the message box can use screen-center placement instead of being positioned relative to an automatically selected process window.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100