We will see what is a menu and how to use it.

Definition: A menu displays a list of commands and can be compose of sub-menu.

For example, consider a menu control, as follows:

menu example

How to create it?

This is specified using the following code:

       .Items(d =>
               .ItemNormalSize().AddItems(v =>
                   v.AddButton("Button 1")

                   v.AddButton("Button 2")

                   v.AddButton("Button 3")



It is possible to apply the following events to a menu

  • Visible: The condition requires to show the control
  • Enable: The condition requires to enable the control


The following controls can be attached to a menu

  • Button, checkbox, menu, gallery, toggle button.