xamarin.forms.shell

Set default tab on Xamarin Forms Shell

六眼飞鱼酱① 提交于 2020-05-13 13:42:55
问题 How to set the default selected Tab inside the tab bar on Xamarin forms 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" x:Class="TestApp.NavigationShell" xmlns:pages="clr-namespace:TestApp.Pages" xmlns:pageModels="clr-namespace:TestApp.PageModels"> <TabBar Route="testapp"> <Tab Title="Saved" Icon="tabDashboard" Route="dashboard"><ShellContent ContentTemplate="{DataTemplate pages

Set default tab on Xamarin Forms Shell

Deadly 提交于 2020-05-13 13:42:15
问题 How to set the default selected Tab inside the tab bar on Xamarin forms 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" x:Class="TestApp.NavigationShell" xmlns:pages="clr-namespace:TestApp.Pages" xmlns:pageModels="clr-namespace:TestApp.PageModels"> <TabBar Route="testapp"> <Tab Title="Saved" Icon="tabDashboard" Route="dashboard"><ShellContent ContentTemplate="{DataTemplate pages