dotnet / dotnet/wpf

Ignore SystemParameters.MenuDropAlignment settings in Win11

Open
#11,073 4 comments 6 reactions 0 assignees View on GitHub
Feature Request
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.

Image

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.