Class MenuBar
- Namespace
- Forma
- Assembly
- Forma.dll
Simple horizontal menu strip that owns menu buttons and opens one popup at a time.
public sealed class MenuBar : TemplatedControl, IAddChild<Control>, IAddChild, INotifyPropertyChanged, IDisposable
- Inheritance
-
MenuBar
- Implements
- Inherited Members
Constructors
MenuBar()
public MenuBar()
Properties
AccessibilityRole
public override AccessibilityRole AccessibilityRole { get; }
Property Value
Alignment
public BoxAlignment Alignment { get; set; }
Property Value
DisableShortcuts
Gates the bar's own accelerator/shortcut activation across every child menu, matching Godot's MenuBar.disable_shortcuts.
public bool DisableShortcuts { get; set; }
Property Value
Orientation
public Orientation Orientation { get; }
Property Value
ReverseSort
public bool ReverseSort { get; set; }
Property Value
Separation
public float Separation { get; set; }
Property Value
Methods
AddMenu(string)
public MenuButton AddMenu(string text)
Parameters
textstring
Returns
AddSpacer(bool)
public Control AddSpacer(bool begin = false)
Parameters
beginbool