lepoco / wpfui

WPF UI provides the Fluent experience in your known and loved WPF framework. Intuitive design, themes, navigation and new immersive controls. All natively and effortlessly.
https://wpfui.lepo.co
MIT License
7.38k stars 715 forks source link

title bar icon wrong when app start in maximized window #163

Open PierreLeGit opened 2 years ago

PierreLeGit commented 2 years ago

I Lepo, First of all, thank you for sharing this very inspiring application. When the application starts in full screen mode, the maximize/shrink icon is not updated in the title bar. The maximize icon is displayed while the window is full screen.

realcnk commented 2 years ago

Hi.

In addition to the icon bug, when setting windowstate="Maximized", when de app starts the window occupies the full screen and covers the taskbar

@pomianowski

huytran123 commented 1 year ago

Hi.

In addition to the icon bug, when setting windowstate="Maximized", when de app starts the window occupies the full screen and covers the taskbar

@pomianowski

the same problem, do you have any solution?

realcnk commented 1 year ago

Hi. In addition to the icon bug, when setting windowstate="Maximized", when de app starts the window occupies the full screen and covers the taskbar @pomianowski

the same problem, do you have any solution?

Yes! On MainWindow_SizeChanged

Me.MaxHeight = SystemParameters.MaximizedPrimaryScreenHeight
Me.MaxWidth = SystemParameters.MaximizedPrimaryScreenWidth

Works with taskbar in top/bottom or left/right