Closed
Description
MAUI Android .NET 9
I have this definition of the Flyout in one of my Shells:
<FlyoutItem Title="Admin Panel"
FlyoutDisplayOptions="AsMultipleItems">
<ShellContent Title="{Binding Source='Dashboards'}"
ContentTemplate="{DataTemplate admin:AdministratorMainPage}"
Icon="{FontImageSource FontFamily='MaterialIcons',
Glyph='',
Size=24,
Color={AppThemeBinding Light=Black,
Dark=White}}"
Route="main" />
<ShellContent Title="{Binding Source='Harvest'}"
ContentTemplate="{DataTemplate admin:AdministratorPage}"
Icon="{FontImageSource FontFamily='MaterialIcons',
Glyph='',
Size=24,
Color={AppThemeBinding Light=Black,
Dark=White}}"
Route="admin_harvests" />
<ShellContent Title="{Binding Source='Pre-settlement'}"
ContentTemplate="{DataTemplate admin:SettlementPage}"
Icon="{FontImageSource FontFamily='MaterialIcons',
Glyph='',
Size=24,
Color={AppThemeBinding Light=Black,
Dark=White}}"
Route="admin_settlements" />
</FlyoutItem>
With this Style, the Font GEIB (is configurated correctly, I'm using it in all the app) is shown correctly in the Flyout menu.
<Style Class="FlyoutItemLabelStyle"
TargetType="Label">
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal">
<VisualState.Setters>
<Setter Property="FontFamily" Value="GEIB" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style>
But, as this definition also shows these pages as TabbedPages, I need to change the font of the Tabs, and is not happening.
Tried Handlers, Effects, Styles, and nothing.
This, changes the color perfectly:
<Style TargetType="Shell" ApplyToDerivedTypes="True">
<Setter Property="Shell.TitleColor" Value="HotPink" />
</Style>
But there's no FontFamily attribute.
Is hard not be able to maintain the same aspect for all the App
Metadata
Metadata
Assignees
Labels
No labels