Skip to content

Commit

Permalink
Merge pull request #367 from SwaggyMacro/main
Browse files Browse the repository at this point in the history
SideMenuItem: Set FontSize to a bindable value
  • Loading branch information
kikipoulet authored Dec 18, 2024
2 parents f80bfa0 + d1ec0bf commit 1ae5735
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SukiUI/Controls/SukiSideMenuItem.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<TextBlock Name="PART_Header"
Margin="15,0"
VerticalAlignment="Center"
FontSize="14"
FontSize="{TemplateBinding FontSize}"
IsVisible="{Binding IsMenuExpanded, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type suki:SukiSideMenu}}}"
Text="{TemplateBinding Header}" />
</Viewbox>
Expand Down Expand Up @@ -119,8 +119,9 @@
</Style>
</Style>
</Style>
<Setter Property="FontSize" Value="14" />
</ControlTheme>
<ControlTheme x:Key="{x:Type suki:SukiSideMenuItem}"
BasedOn="{StaticResource SukiSideMenuItemStyle}"
TargetType="suki:SukiSideMenuItem" />
</ResourceDictionary>
</ResourceDictionary>

0 comments on commit 1ae5735

Please sign in to comment.