Border & theme settings not respected by Windows 11

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 1 year ago by Ethem Acar
Version: 22.1.3
Platform: .NET 6.0
Environment: Windows 11 (64-bit)
Avatar

I tested this on 2 virtual machines.

Windows 10 respected border & theme:

https://i.ibb.co/Dk9Syx2/Windows10.png

Windows 11 does not respect border & theme:

https://i.ibb.co/5Fm3y9v/Windows11.png

The question is should the OS decide or the developer? My vote is on developer.

My expected result was like Visual Studio on Windows 11:

https://i.ibb.co/xjdhFbw/Windows11-Expected.png

[Modified 1 year ago]

Comments (3)

Posted 1 year ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

When in Windows 11 and allowing the Windows system to render the curved border and outer shadow, we give up the ability to render the border ourselves.  The missing blue color of the border in Windows 11 is what you are referring to here, correct?

That being said there is a Win32 API we found that allows us to set a border color.  We will do that for the next maintenance release so that the border renders consistently between Windows versions.


Actipro Software Support

Posted 1 year ago by Ethem Acar
Avatar

Hi,

The missing blue color of the borders yes. If you could make curving optional theme setting it would be amazing. Not for me, I will go for border color + curve like my example https://i.ibb.co/xjdhFbw/Windows11-Expected.png. But I can already see other devs not wanting the enforced curve by Windows 11.

Good luck!

Posted 1 year ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Setting WindowChrome.CornerKind to Square, and keeping WindowChrome.BackdropKind as its default value None should allow you to prevent any curved corners in Windows 11.  Those options are already in place.


Actipro Software Support

The latest build of this product (v24.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.