Files
SunlightAggregationTerminal/AppShell.xaml
T

52 lines
2.0 KiB
XML
Raw Normal View History

2026-05-01 14:44:49 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
<Shell
x:Class="SunlightAggregationTerminal.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:SunlightAggregationTerminal"
Title="SunlightAggregationTerminal"
Loaded="Shell_Loaded"
Shell.FlyoutBehavior="Disabled">
<Shell.Resources>
<ResourceDictionary>
<Style TargetType="TabBar">
<!-- 核心代码:半透明白色 (Alpha值CC约80%不透明度) -->
<!-- 视觉上非常像磨砂玻璃,且兼容所有平台 -->
<Setter Property="Shell.TabBarBackgroundColor" Value="#CCF0F0F0" />
<!-- 设置选中时的标题颜色(建议深色) -->
<Setter Property="Shell.TabBarTitleColor" Value="#333333" />
<!-- 设置未选中时的图标和标题颜色 -->
<Setter Property="Shell.TabBarUnselectedColor" Value="#888888" />
</Style>
</ResourceDictionary>
</Shell.Resources>
<TabBar>
<!-- 1 信息页面 -->
<ShellContent
Title="信息"
Icon="infofeed.png"
ContentTemplate="{DataTemplate local:InfoPage}"/>
<!-- 2 查询页面 -->
<ShellContent
Title="查询"
Icon="search.png"
ContentTemplate="{DataTemplate local:QueryPage}"/>
<!-- 操作页面 -->
<!--
<ShellContent
Title="操作"
Icon="IcOutlinePsychologyAlt.png"
ContentTemplate="{DataTemplate local:QueryPage}"/>-->
2026-05-01 14:44:49 +08:00
<!-- 3 通知页面 -->
<ShellContent
Title="通知"
Icon="ixnotifications.png"
ContentTemplate="{DataTemplate local:NotificationPage}"/>
<!-- 4 我的页面 -->
<ShellContent
Title="我"
Icon="adduserfilled.png"
ContentTemplate="{DataTemplate local:ProfilePage}"/>
</TabBar>
</Shell>