Manipulate a MenuItem's enabled property at runtime


#1

I have an app that, in order, needs to:

  1. Initialize its UI presence by creating a menu bar/notification tray icon with a menu
  2. Retrieve external data
  3. Based on that data, potentially enable a menu item that is disabled initially

In the docs, I don’t see any obvious way of changing the enabled property of an existing menu item. Am I just not seeing it?

Thanks.