基于TabbedPage的导航和基于Shell Tabs ( Shell
++ TabBar
)的导航有什么区别Tab
?(如有可能,请提供示例)。
是Shell
旧页面导航的替代品吗?
基于TabbedPage的导航和基于Shell Tabs ( Shell
++ TabBar
)的导航有什么区别Tab
?(如有可能,请提供示例)。
是Shell
旧页面导航的替代品吗?
Xamarin.Forms Shell 基本上是一个容器,旨在提高 Xamarin.Forms 应用程序的导航复杂性。根据 Xamarin.Forms Shell 文档,它具有以下优点:
降低移动应用程序开发的复杂性
提供通用的浏览用户体验
使用基于 URI 的导航方案
有一个集成的搜索控制器
要开始在 shell 中构建 UI,这将是起点:
<?xml version="1.0" encoding="UTF-8" ?>
<Shell
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:views="clr-namespace:ShellNavigationSample.Views"
x:Class="ShellNavigationSample.AppShell">
</Shell>