Ignore SystemParameters.MenuDropAlignment settings in Win11
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
In Windows 11, all interface options related to handedness have been completely removed. Now, aside from modifying the registry, there is no way to configure the "Menu appear to the left or right of your hand" feature. I’ve observed that even when the registry option is modified, it no longer affects any applications across the system, including the Notepad app, even VisualStudio. It seems that only WPF still adheres to this setting. However, this adherence makes WPF applications feel inconsistent with system applications.
I believe it’s time to deprecate this option or provide developers with the ability to ignore it via an AppContext configuration.
Reference: https://github.com/dotnet/wpf/issues/5944 and https://github.com/dotnet/wpf/issues/4641
The registry key is `HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows\MenuDropAlignment`
---
As @miloush says in https://github.com/dotnet/wpf/issues/4641#issuecomment-1059994756 , we can support the `Popup.GetPointCombination` to use dynamic resource with `MenuDropAlignmentKey` rather than directly `SystemParameters.MenuDropAlignment`.
Contributor guide
Assessment
This issue has not been assessed yet.