Repository navigation
Expand file tree
/
Copy pathAppShell.xaml
More file actions
50 lines (48 loc) · 2.18 KB
/
Copy pathAppShell.xaml
File metadata and controls
50 lines (48 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Wave 3: six tabs — Today · Health · Log · Goals · Programs · Profile.
The Log tab's content type is injected at runtime by AppShell.xaml.cs (see LogTabContent):
a static XAML reference to another lane's page would break lane-isolated builds, so the
shell degrades to five visible tabs instead of failing to compile.
Titles are NOT set here: they live in the localization service and are re-resolved on every
language switch by AppShell.RefreshTitles (Shell chrome sits outside the binding tree).
Tab-bar colors are plain Colors via AppThemeBinding — never *Brush tokens (rule §0.7).
-->
<Shell
x:Class="LIVORA.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:views="clr-namespace:LIVORA.Presentation.Views"
Title="LIVORA"
FlyoutBehavior="Disabled"
TabBarBackgroundColor="{AppThemeBinding Light={StaticResource Surface}, Dark={StaticResource SurfaceDark}}"
TabBarTitleColor="{AppThemeBinding Light={StaticResource TextPrimary}, Dark={StaticResource TextPrimaryDark}}"
TabBarUnselectedColor="{AppThemeBinding Light={StaticResource TextSecondary}, Dark={StaticResource TextSecondaryDark}}">
<TabBar x:Name="MainTabBar">
<ShellContent
x:Name="TodayItem"
Icon="tab_today.svg"
ContentTemplate="{DataTemplate views:TodayPage}"
Route="Today" />
<ShellContent
x:Name="HealthItem"
Icon="tab_health.svg"
ContentTemplate="{DataTemplate views:HealthPage}"
Route="Health" />
<ShellContent
x:Name="GoalsItem"
Icon="tab_goals.svg"
ContentTemplate="{DataTemplate views:GoalsPage}"
Route="Goals" />
<ShellContent
x:Name="ProgramsItem"
Icon="tab_programs.svg"
ContentTemplate="{DataTemplate views:ProgramsPage}"
Route="Programs" />
<ShellContent
x:Name="ProfileItem"
Icon="tab_profile.svg"
ContentTemplate="{DataTemplate views:ProfilePage}"
Route="Profile" />
</TabBar>
</Shell>