I am using Xamarin Forms and default ShellApp. I have FlyoutItems e.g.
<FlyoutItem Title="About" Icon="icon_about.png">
<ShellContent Route="AboutPage" ContentTemplate="{DataTemplate local:AboutPage}" />
</FlyoutItem>
<FlyoutItem Title="Browse" Icon="icon_feed.png">
<ShellContent Route="ItemsPage" ContentTemplate="{DataTemplate local:ItemsPage}" />
</FlyoutItem>
I don't like the default behavior, once clicked on an Item all other pages get poped from NavigationStack, so I changed that.
The problem I am facing now is marking the FlyoutItem as Selected.
I read that it is possible using VisualStateManager, but I don't know how to get the VisualElement and change its VisualState.
Any ideas how to achieve that?
Thanks