Skip to content

Conversation

textGamex
Copy link
Contributor

@textGamex textGamex commented Jun 13, 2024

Pull request type

Please check the type of change your PR introduces:

  • Update
  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

What is the current behavior?

The MessageBox will only display in the center of the screen, and the WindowStartupLocation is not effective.

Issue Number: #1045

What is the new behavior?

  • fix this bug.

Other information

Using reflection to invoke a private property of the Window class to help determine if the MessageBox can be displayed centered on the Owner.

In the .NET 8 assembly, I utilized UnsafeAccessor to enhance performance.

@textGamex textGamex marked this pull request as ready for review June 13, 2024 16:48
@textGamex textGamex requested a review from pomianowski as a code owner June 13, 2024 16:48
@github-actions github-actions bot added controls Changes to the appearance or logic of custom controls. PR Pull request dotnet labels Jun 13, 2024
@pomianowski pomianowski merged commit ecd36c1 into lepoco:development Jul 24, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
controls Changes to the appearance or logic of custom controls. dotnet PR Pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants