microsoft / microsoft/microsoft-ui-xaml

ContentDialog FlowDirection does not follow the XamlRoot.Content FlowDirection

Open
#9,899 1 comment 0 reactions 0 assignees View on GitHub
area-Dialogs area-Popup bug team-Controls
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

ContentDialog FlowDirection does not follow the XamlRoot.Content FlowDirection
ContentDialog FlowDirection 并不跟随 XamlRoot.Content 的 FlowDirection

As shown in the figure, when ContentDialog.XamlRoot is mounted to Window.Content, when ContentDialog is displayed and the FlowDirection of Window.Content is RTL, The ContentDialog is unchanged
如图所示,ContentDialog.XamlRoot 挂载到 Window.Content 时,显示 ContentDialog 时,Window.Content 的 FlowDirection 为 RTL 时,ContentDialog 没有变化

### Steps to reproduce the bug

See describe

### Expected behavior

ContentDialog FlowDirection should follow the XamlRoot.Content FlowDirection
ContentDialog FlowDirection 应该跟随 XamlRoot.Content 的 FlowDirection

### Screenshots

![{A3E9F5F1-F386-4E46-AAD9-78E26B603FEC}](https://github.com/user-attachments/assets/80ecfe6d-7d44-4ad3-9e85-cc705ee268dc)

### NuGet package version

WinUI 3 - Windows App SDK 1.6 Preview 1: 1.6.240807006-preview1

### Windows version

Windows 11 (22H2): Build 22621

### Additional context

Also exists in Windows App SDK 1.5 and UWP (Including WinUI 2)

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by reproducing the issue with a ContentDialog mounted through XamlRoot to Window.Content while the window uses RTL, then trace the ContentDialog and XamlRoot flow-direction behavior. Done means the dialog follows the XamlRoot.Content FlowDirection, with regression coverage for RTL.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.