MahApps / MahApps.Metro

A framework that allows developers to cobble together a better UI for their own WPF applications with minimal effort.
https://mahapps.com
MIT License
9.23k stars 2.45k forks source link

Animated Single Row Tab Control arrow icon is incorrect when setting flow direction right to left #3660

Closed VahidHajizadeh closed 4 years ago

VahidHajizadeh commented 4 years ago

Hello, when I use Tab Control in a Right-to-left window, the arrow's icon keeps its direction like Left-to-right mode. It's should change.

<Grid>
    <Grid.Resources>
        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedSingleRowTabControl.xaml"/>
    </Grid.Resources>

    <TabControl mah:TabControlHelper.IsUnderlined="True"
                mah:TabControlHelper.Underlined="TabPanel"
                x:Name="MainTab"
                controlzex:KeyboardNavigationEx.AlwaysShowFocusVisual="True"
                Loaded="MainTab_Loaded">
        <mah:MetroTabItem Header="لیست دانش آموزان" CloseButtonEnabled="True"  CloseButtonMargin="10,15,10,0"/>
    </TabControl>
</Grid>

Screenshot:

Untitled

How to solve this? Please Guide me.

VahidHajizadeh commented 4 years ago

when I changed flow diretction at runtime, problem solved temporarily

screenshots: 1: 1

2: 2

3: 3

punker76 commented 4 years ago

@VahidHajizadeh this has now been fixed, and it will be released in the next version of MahApps.Metro v2.0

VahidHajizadeh commented 4 years ago

thanks a lot for your fix and lovely mahapps