How do MenuOnly MobileToolbarButtons work?

How do I populate the menu that is shown for MenuOnly MobileToolbarButtons? When I set the MenuOnly property to True, a blank menu pops up. I can’t find anything in the documentation and the Android Toolbar example doesn’t populate the menu buttons.

1 Like

I dug deeper into the documentation and the MenuOnly property is supported on Android only. However, the only way I’ve found to attach a popover menu to a MobileToolbarButton is via a ShowPopover method that is on MobileContainer and MobileScreen. However, those methods are only supported on iOS.

OK, I figured it out! I was misunderstanding the documentation. I thought that MenuOnly meant that a button acted only as a menu, but what it means is that the button will only appear in the “overflow” area of the toolbar.

I must be the only person to interpret the documentation this way, but I feel like that could be made clearer in the documentation.