Describe the bug
When setting the FlowDirection property of a Window to RightToLeft in a WPF application using UI.WPF.Modern, the Flyout component is positioned incorrectly.
Expected behavior:
The Flyout should appear at the correct location corresponding to its anchor, even with RightToLeft flow direction set on the Window.
Actual behavior:
The Flyout appears in an incorrect position. Please see the attached screenshot for visual reference.
Reproduction
To reproduce:
-
In the WPF.Modern.Gallery project, set FlowDirection="RightToLeft" on the main Window:
<Window x:Class="iNKORE.UI.WPF.Modern.Gallery.MainWindow"
...
FlowDirection="RightToLeft">
-
Navigate to a page containing a Flyout. The Flyout will be displayed at an incorrect position (see the screenshot).
Alternatively:
- Create a new Window and set FlowDirection to RightToLeft.
- Add a Flyout component.
- Open the Flyout – it will appear in the wrong position.
Suggested Solution
I do not know the exact solution, but it may require adjustments to the Flyout's position calculation when FlowDirection is RightToLeft.
Library Version
0.10.1
Operating System
Windows 11
Framework
.NET Framework
Framework Version
9
Source of Package
NuGet.org (Package)
Additional Notes
No response
Validations
Describe the bug
When setting the FlowDirection property of a Window to RightToLeft in a WPF application using UI.WPF.Modern, the Flyout component is positioned incorrectly.
Expected behavior:
The Flyout should appear at the correct location corresponding to its anchor, even with RightToLeft flow direction set on the Window.
Actual behavior:
The Flyout appears in an incorrect position. Please see the attached screenshot for visual reference.
Reproduction
To reproduce:
In the WPF.Modern.Gallery project, set
FlowDirection="RightToLeft"on the main Window:<Window x:Class="iNKORE.UI.WPF.Modern.Gallery.MainWindow"
...
FlowDirection="RightToLeft">
Navigate to a page containing a Flyout. The Flyout will be displayed at an incorrect position (see the screenshot).
Alternatively:
Suggested Solution
I do not know the exact solution, but it may require adjustments to the Flyout's position calculation when FlowDirection is RightToLeft.
Library Version
0.10.1
Operating System
Windows 11
Framework
.NET Framework
Framework Version
9
Source of Package
NuGet.org (Package)
Additional Notes
No response
Validations