Open textGamex opened 3 weeks ago
Please check the type of change your PR introduces:
The MessageBox will only display in the center of the screen, and the WindowStartupLocation is not effective.
MessageBox
WindowStartupLocation
Issue Number: #1045
Using reflection to invoke a private property of the Window class to help determine if the MessageBox can be displayed centered on the Owner.
Window
Owner
In the .NET 8 assembly, I utilized UnsafeAccessor to enhance performance.
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
The
MessageBox
will only display in the center of the screen, and theWindowStartupLocation
is not effective.Issue Number: #1045
What is the new behavior?
Other information
Using reflection to invoke a private property of the
Window
class to help determine if theMessageBox
can be displayed centered on theOwner
.In the .NET 8 assembly, I utilized UnsafeAccessor to enhance performance.