Skip to content

Commit be700a8

Browse files
Icons LTR FlowDirection moved to Generic.xaml
1 parent 8897306 commit be700a8

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

MaterialDesignThemes.Wpf/PackIcon.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ static PackIcon()
1919
DefaultStyleKeyProperty.OverrideMetadata(typeof(PackIcon), new FrameworkPropertyMetadata(typeof(PackIcon)));
2020
}
2121

22-
public PackIcon() : base(PackIconDataFactory.Create)
23-
{
24-
FlowDirection = FlowDirection.LeftToRight;
25-
}
22+
public PackIcon() : base(PackIconDataFactory.Create) { }
2623
}
2724
}

MaterialDesignThemes.Wpf/Themes/Generic.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,13 +787,14 @@
787787
<Setter Property="HorizontalAlignment" Value="Left" />
788788
<Setter Property="VerticalAlignment" Value="Top" />
789789
<Setter Property="IsTabStop" Value="False" />
790+
<Setter Property="FlowDirection" Value="LeftToRight" />
790791
<Setter Property="Template">
791792
<Setter.Value>
792793
<ControlTemplate TargetType="{x:Type local:PackIcon}">
793794
<Border Background="{TemplateBinding Background}"
794795
BorderBrush="{TemplateBinding BorderBrush}"
795796
BorderThickness="{TemplateBinding BorderThickness}">
796-
<Viewbox>
797+
<Viewbox FlowDirection="LeftToRight">
797798
<Canvas Width="24" Height="24">
798799
<Path Data="{Binding Data, RelativeSource={RelativeSource TemplatedParent}}"
799800
Fill="{TemplateBinding Foreground}" />

0 commit comments

Comments
 (0)