NativeDock Class
Definition
Allows native menu support on platforms where a Avalonia.Controls.NativeMenu can be attached to the dock.
public class NativeDock
Methods
| Name | Description |
|---|---|
| GetMenu | Gets the value of the attached Avalonia.Controls.NativeDock.MenuProperty. |
| SetMenu | Sets the value of the attached Avalonia.Controls.NativeDock.MenuProperty. |
GetMenu Method
Gets the value of the attached Avalonia.Controls.NativeDock.MenuProperty.
public Avalonia.Controls.NativeMenu GetMenu(Avalonia.AvaloniaObject o)
Parameters
The control to get the menu for.
Returns
The menu of the control.
SetMenu Method
Sets the value of the attached Avalonia.Controls.NativeDock.MenuProperty.
public void SetMenu(Avalonia.AvaloniaObject o, Avalonia.Controls.NativeMenu menu)
Parameters
The control to set the menu for.
menu Avalonia.Controls.NativeMenu
The menu to set.
Fields
| Name | Description |
|---|---|
| MenuProperty | Defines the Menu attached property. |
MenuProperty Field
Defines the Menu attached property.
public Avalonia.AttachedProperty<Avalonia.Controls.NativeMenu> MenuProperty