modnaut / primary

0 stars 0 forks source link

Menu Elements #33

Closed modnaut closed 11 years ago

modnaut commented 11 years ago

Can you explain the different between

vs xsi:type="Menu" vs xsi:type="MenuItem" vs xsi:type="MenuSeparatorItem" vs.... Not exactly sure when I should be using them and why.

dannycohn commented 11 years ago

A menu is a menu that contains a bunch of menu items. It is not meant to be created by itself, but rather should be inside of a button and will appear when the button is clicked.

A menu can be contained within a button inside of a container, in which case the button will just appear in the container and when you click on it it will open the menu, or you can put a menu inside of button that's within a toolbar, in which case the button will appear in the toolbar and the menu will appear when you click on the button.

image

A normal menuitem is the first one, followed by a menuseparator (used if you want to create sections in your menu) followed by a menucheckitem