MAUI新生5.3-底部Tab栏导航TabBar/Tab/ShellContent

一、TabBar的基本使用:

如果只需要底部Tab栏导航,则应使用TabBar。TabBar的使用,和FlyoutItem基本相同,如下图所示:

 

 

 

 

二、底部Tab栏的样式设置

  • Shell.TabBarBackgroundColor:设置在Shell或TabBar上,Tab栏背景色
  • Shell.TabBarDisabledColor:设置在Shell或TabBar上,不可用Tab栏颜色
  • Shell.TabBarForegroundColor:设置在Shell或TabBar上,Tab栏前景色
  • Shell.TabBarTitleColor:设置在Shell或TabBar上,Tab栏标题颜色
  • Shell.TabBarUnselectedColor:设置在Shell或TabBar上,未选定颜色
  • Shell.TabBarIsVisible或者IsVisible:设置ShellContent的可见性

 

posted @ 2022-12-29 22:25  functionMC  阅读(2178)  评论(2编辑  收藏  举报