Home > Enterprise >  WPF - How to show controls on Title Bar preserving caption buttons
WPF - How to show controls on Title Bar preserving caption buttons

Time:11-30

i want to make my app similar to Windows 10 Mail App: Here the image

As seen in the image, the left panel is over title bar and even the middle one. But the Caption buttons are preserved. As my OS is Windows 11 , when I hover mouse over over middle caption button it shows window snap options which proves this are system default caption button and not created

I know title bar is non client area but WPF is a great technology there should be some way to achieve it. I have already seen on many web and mostly found that they set WindowStyle to None and NoResizable or They use WindowChrome and create there own caption buttons, but i want Windows 11's default caption buttons.

One thing I noticed was in Windows Chrome caption buttons are there but just invisible, so if there's anyway to make it visible that would work too.

Or please tell if there is any Nuget Packgage with such Custom Window.

I have tried to create my own caption buttons too : My application Thanks in Advance !!!

CodePudding user response:

You can try this package and see if it suites you. https://github.com/Kinnara/ModernWpf/wiki/Controls#additional-controls

You may also search for ModernUi or mahapps, they have a lot of styles controls with behaviors already written.

  • Related