Skip to content

Improve RTL Developer Scenarios for WinUI #10345

Closed as not planned
Closed as not planned
@riverar

Description

@riverar

Describe the bug

Currently in WinUI, there is no easy way to handle RTL scenarios. If a RTL language is set on the OS, it is up to the developer to handle that event listener. They would have to set the FlowDirection property and update the language on the app.

There is little to no documentation explaining this developer experience gap nor the workaround. As a result, most apps are just not RTL friendly, and that is a huge gap in accessibility and inclusitivity.

This task includes:

  • Improve documentation explaining the workaround in the interim.

  • Investigate how to better improve RTL scenarios

    • Whether the code should live in XamlWindow or elsewhere.
    • How to check if the app has the correct language localized to mirror the OS settings. Windows developer guidelines state that if the default is a LTR language, it should not become RTL just to mirror the OS.
  • Update AppWindow to automatically change captionButton orientation for RTL so developers don't have to use the Win32 workaround.

Internal Bug: 56332666, 56332722

Screenshots

Image

NuGet package version

WinUI 3 - Windows App SDK 1.7 Preview 1: 1.7.250208002-preview1

Windows version

Windows Insider Build (xxxxx)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions