我在我的应用程序中使用 shell 选项卡栏进行导航。一开始,它运行良好,但当我的应用程序增长时 - 它开始运行缓慢。
有机会解决问题吗?
这是我的外壳:
<?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:Anime.Views"
x:Class="Anime.Views.ShellView"
Shell.NavBarIsVisible="False"
StyleClass="shellStyle">
<TabBar >
<Tab Icon="ic_home.png">
<ShellContent ContentTemplate="{DataTemplate views:HomeView}"/>
</Tab>
<Tab Icon="ic_search.png">
<ShellContent ContentTemplate="{DataTemplate views:SearchView}"/>
</Tab>
<Tab Icon="ic_person.png">
<ShellContent ContentTemplate="{DataTemplate views:ProfileView}"/>
</Tab>
</TabBar>
</Shell>