GeonBit.UI Documentation
SimpleFileMenuCreate Method |
Create the file menu and return the root panel.
The result would be a panel containing a group of dropdown entities, which implement the file menu layout.
The id of every dropdown is "menu-[menu-title]".
Note: the returned file menu panel comes without parent, you need to add it to your UI tree manually.
Namespace: GeonBit.UI.Utils
Assembly: GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
![](SectionExpanded.png)
C#
public static Panel Create( SimpleFileMenuMenuLayout layout, PanelSkin skin = PanelSkin.Simple )
Parameters
- layout
- Type: GeonBit.UI.UtilsSimpleFileMenuMenuLayout
Layout to create file menu for. - skin (Optional)
- Type: GeonBit.UI.EntitiesPanelSkin
Skin to use for panels and dropdown of this file menu.
Return Value
Type: PanelMenu root panel.
![](SectionExpanded.png)