WinUIEx icon indicating copy to clipboard operation
WinUIEx copied to clipboard

Strange color behaviour when using 'CenterOnScreen'

Open mavado83 opened this issue 2 years ago • 1 comments

Hi, thanks for the great project. Keeping me away from using nativemethods.

I noticed strange color behaviour when changing the selected theme to dark when using the CenterOnScreen extension method.

Background:

Using the lastest Template Studio for WinUI (where WinUIEx is included). Generated a clean template with the theme selector (available in settings) Using VS 2022 on Windows 11

Setting the window using: App.MainWindow.CenterOnScreen(800, 600);

Issue:

When running the default template, there're no issues, but when using the CenterOnScreen feature the colors are messed up when selecting the dark theme. See the screenshot below:

image

Without the CenterOnScreen:

image

mavado83 avatar Aug 30 '22 13:08 mavado83

At what point are you calling this method? Does it still happen if you delay the call?

dotMorten avatar Sep 06 '22 02:09 dotMorten

Closing due to lack of information to repro / stale issue

dotMorten avatar Dec 08 '22 06:12 dotMorten