Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TreeViewItem Chevron show wrong angel direction on FlowDirection="RightToLeft" #10209

Open
alraseensaad opened this issue Dec 27, 2024 · 0 comments

Comments

@alraseensaad
Copy link

Description

The Chevron icon of the TreeViewItem is displayed on wrong angle direction when the FlowDirection is set to RightToLeft or when running in Arabic cultures.

Reproduction Steps

create a TreeView with children and sub children and sent the FlowDirection to RightToLeft

 <TreeView Grid.Column="1"
           FlowDirection="RightToLeft">
     <TreeViewItem Header="Root">
         <TreeViewItem Header="Child 1">
             <TreeViewItem Header="Grandchild 1" />
             <TreeViewItem Header="Grandchild 2" />
         </TreeViewItem>
         <TreeViewItem Header="Child 2">
             <TreeViewItem Header="Grandchild 3" />
             <TreeViewItem Header="Grandchild 4" />
         </TreeViewItem>
     </TreeViewItem>
 </TreeView>

Expected behavior

The chevron icon points to the left (<) when the TreeViewItem is closed and changes to point downward (v) when the TreeViewItem is open.
Image

Actual behavior

The chevron icon points to the right (>) when the TreeViewItem is closed and changes to point upward (^) when the TreeViewItem is open.
Image

Regression?

it just appears on flaunt theme

Known Workarounds

No response

Impact

No response

Configuration

windows 11
dotnet 9

Other information

TreeViewChevron.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants