Skip to content

Commit 4e05905

Browse files
committed
add border to packicon template
1 parent dd6c958 commit 4e05905

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

MaterialDesignThemes.Wpf/Themes/Generic.xaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -754,12 +754,16 @@
754754
<Setter Property="Template">
755755
<Setter.Value>
756756
<ControlTemplate TargetType="{x:Type local:PackIcon}">
757-
<Viewbox>
758-
<Canvas Width="24" Height="24">
759-
<Path Data="{Binding Data, RelativeSource={RelativeSource TemplatedParent}}"
760-
Fill="{TemplateBinding Foreground}" />
761-
</Canvas>
762-
</Viewbox>
757+
<Border Background="{TemplateBinding Background}"
758+
BorderBrush="{TemplateBinding BorderBrush}"
759+
BorderThickness="{TemplateBinding BorderThickness}">
760+
<Viewbox>
761+
<Canvas Width="24" Height="24">
762+
<Path Data="{Binding Data, RelativeSource={RelativeSource TemplatedParent}}"
763+
Fill="{TemplateBinding Foreground}" />
764+
</Canvas>
765+
</Viewbox>
766+
</Border>
763767
</ControlTemplate>
764768
</Setter.Value>
765769
</Setter>

0 commit comments

Comments
 (0)