我的Xamarin Shell应用程序在文件中定义了以下FlyoutItem
元素AppShell.xaml
:
<FlyoutItem ...>
<ShellContent Title="A" Route="R1" ... />
<ShellSection Title="B" Route="R2">
<ShellContent Title="C" Route="R3" ... />
<ShellContent Title="D" Route="R4" ... />
</ShellSection>
<ShellContent Title="D" Route="R5" .../>
<ShellContent Title="E" Route="R6" ... />
</FlyoutItem>
我想要获得的行为如下:
- 单击
B
页面,我希望将用户重定向到命名的C
选项卡(这是默认行为并且开箱即用)。ShellSection
B
- 单击
D
页面,我希望将用户重定向到命名的D
选项卡。ShellSection
B
我如何获得这个?