Answered by:
Limit on number of items in PopupMenu

Question
-
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
Answers
-
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.
--Rob
Thursday, January 26, 2012 1:42 AMModerator
All replies
-
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.
--Rob
Thursday, January 26, 2012 1:42 AMModerator -
I have to point out how frustrating this is, especially without any apparent way of altering the number of items in the menu. Furthermore, the sample finance app in Win8 has what appears to be a popupmenu, but with seven items in the list. Struggling to grok this here, guys.Friday, March 23, 2012 6:54 PM
-
Cale9, where can I find this finance sample app?Sunday, March 25, 2012 6:34 AM
-
The banking app is here: http://msdn.microsoft.com/en-us/library/windows/apps/hh464938.aspx
Rebecca M. Riordan
Sunday, March 25, 2012 3:01 PM -
If it has more than six items, it might be an HTML flyout, which looks like a context menu. http://code.msdn.microsoft.com/windowsapps/Flyout-sample-258757b3Monday, March 26, 2012 9:21 PM