dotMorten / WinUIEx

WinUI Extensions
https://dotmorten.github.io/WinUIEx
MIT License
572 stars 36 forks source link

CenterOnScreen has window visibility change side-effect #132

Closed riverar closed 10 months ago

riverar commented 10 months ago

Wasn't expecting CenterOnScreen to make my window visible (usage of SWP_SHOWWINDOW parameter). Would recommend removing this and keeping window visibility state changes separate.

https://github.com/dotMorten/WinUIEx/blob/24da8fd46391d52e2f56126ea40f750c1c4355de/src/WinUIEx/HwndExtensions.cs#L100-L117

riverar commented 10 months ago

Nice like rice, thanks @dotMorten