Skip to content

Commit

Permalink
Update SukiSideMenuItem.axaml
Browse files Browse the repository at this point in the history
set fontsize to a bindable value, default is 14.
  • Loading branch information
SwaggyMacro authored Dec 18, 2024
1 parent f80bfa0 commit d1ec0bf
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 d1ec0bf

Please sign in to comment.