Is there a way to create the items in a PopupMenu dynamically? That is to say rather then using a layout file create the items in the menu on the fly?
Thanks for any help!
Yes you can dynamically build your menu.
On way is using the OnPrepareOptionsMenu method. Another way is using the OnCreateOptionsMenu method and setting up your menu by code. Something like this should work.
public override bool OnCreateOptionsMenu(IMenu menu)
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies