File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,6 @@ static PackIcon()
19
19
DefaultStyleKeyProperty . OverrideMetadata ( typeof ( PackIcon ) , new FrameworkPropertyMetadata ( typeof ( PackIcon ) ) ) ;
20
20
}
21
21
22
- public PackIcon ( ) : base ( PackIconDataFactory . Create )
23
- {
24
- FlowDirection = FlowDirection . LeftToRight ;
25
- }
22
+ public PackIcon ( ) : base ( PackIconDataFactory . Create ) { }
26
23
}
27
24
}
Original file line number Diff line number Diff line change 787
787
<Setter Property =" HorizontalAlignment" Value =" Left" />
788
788
<Setter Property =" VerticalAlignment" Value =" Top" />
789
789
<Setter Property =" IsTabStop" Value =" False" />
790
+ <Setter Property =" FlowDirection" Value =" LeftToRight" />
790
791
<Setter Property =" Template" >
791
792
<Setter .Value>
792
793
<ControlTemplate TargetType =" {x:Type local:PackIcon}" >
793
794
<Border Background =" {TemplateBinding Background}"
794
795
BorderBrush =" {TemplateBinding BorderBrush}"
795
796
BorderThickness =" {TemplateBinding BorderThickness}" >
796
- <Viewbox >
797
+ <Viewbox FlowDirection = " LeftToRight " >
797
798
<Canvas Width =" 24" Height =" 24" >
798
799
<Path Data =" {Binding Data, RelativeSource={RelativeSource TemplatedParent}}"
799
800
Fill =" {TemplateBinding Foreground}" />
You can’t perform that action at this time.
0 commit comments