Limit on number of items in PopupMenu


  • I'm adding UICommand items to a Windows.UI.Popups.PopupMenu, and it's working as expected with six items. When I add a seventh item, I can't get the menu to appear.

    Is there a six item limit by design, or is this a bug?

    Wednesday, January 25, 2012 10:57 PM


  • This is by design. If you run in the debugger you'll see that you get a first chance exception and a message:

    WinRT information: Too many menu items have been added to the context menu.


    • Proposed as answer by Bob_Bao Thursday, January 26, 2012 8:29 AM
    • Marked as answer by Jani L Thursday, January 26, 2012 6:07 PM
    Thursday, January 26, 2012 1:42 AM

All replies