8000 [WPF] KeyGesture.GetDisplayStringForCulture() does not provide a localized string · Issue #10894 · dotnet/wpf · GitHub
[go: up one dir, main page]

Skip to content
[WPF] KeyGesture.GetDisplayStringForCulture() does not provide a localized string #10894
@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work]
Contrary to what its name suggests, the function GetDisplayStringForCulture(CultureInfo) in the class System.Windows.Input.KeyGesture does not return a localized string.
After looking into the source code, the problem can be tracked down to the ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type) method of the System.Windows.Input.KeyConverter class, which does not use its CultureInfo parameter.

Workaround (not ideal): use WinForms, as suggested by this StackOverflow answer. This works because System.Windows.Forms.KeysConverter properly translates the special keys.


Original Comments

Feedback Bot on 5/22/2025, 11:33 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    InvestigateRequires further investigation by the WPF team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0