Skip to content

Commit

Permalink
chore: remove content setter
Browse files Browse the repository at this point in the history
  • Loading branch information
kazo0 committed Sep 22, 2024
1 parent 957f427 commit 8f48f00
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@
<Style x:Key="MaterialMainCommandStyle"
TargetType="AppBarButton"
BasedOn="{StaticResource MaterialAppBarButtonStyle}">
<Setter Property="Content" Value="{ThemeResource NavigationBarBackIconData}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="AppBarButton">
Expand Down Expand Up @@ -261,7 +260,7 @@
Content="{TemplateBinding Icon}"
Foreground="{TemplateBinding Foreground}" />
</Viewbox>
<PathIcon Data="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}"
<PathIcon Data="{ThemeResource NavigationBarBackIconData}"
Visibility="{Binding Path=Icon, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource NullToVisibleConverter}}"
Foreground="{TemplateBinding Foreground}"
HorizontalAlignment="Center"
Expand Down

0 comments on commit 8f48f00

Please sign in to comment.