1

I'm using the standard Flyout App template in the latest Visual Studio for Mac. When I run it on Android, and expand the flyout menu, the first item is selected:

enter image description here

When I run it on iOS, it is not:

enter image description here

Only after selecting another flyout item first, and going back to About, it is selected:

enter image description here

How can I fix this? Is there a property on Shell.Current.CurrentItem I can set?

Our application has an always-visible menu with just the icon, and it's especially annoying that you can't see on which 'tab' you are.

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
  • I had tested it and it seems bug for the ios. In addition, I can find the api to set the selected property by myself. So you can report it to the github. – Liyun Zhang - MSFT Aug 25 '22 at 09:34
  • Thanks! Do you mean you *cannot* find the API - because otherwise I'd interested in what it is (even if it's a private property which I can only set via reflection). – Glorfindel Aug 25 '22 at 09:47
  • Sorry for my mistake, it should be can't. I try to set the FlyoutItem's selected or the background color property. But I failed, both the two properties can't be changed programmatically. – Liyun Zhang - MSFT Aug 25 '22 at 09:52
  • Bug report posted: https://github.com/xamarin/Xamarin.Forms/issues/15525 – Glorfindel Aug 25 '22 at 10:54
  • Upgrading to MAUI solved this issue (but introduced a boatload of other unrelated issues ...) – Glorfindel Feb 06 '23 at 14:39

0 Answers0