namespace Avalonia.Controls
{
///
/// Allows native menu support on platforms where a can be attached to the dock.
///
public static class NativeDock
{
///
/// Defines the Menu attached property.
///
public static readonly AttachedProperty MenuProperty =
AvaloniaProperty.RegisterAttached("Menu", typeof(NativeDock));
///
/// Sets the value of the attached .
///
/// The control to set the menu for.
/// The menu to set.
public static void SetMenu(AvaloniaObject o, NativeMenu? menu) => o.SetValue(MenuProperty, menu);
///
/// Gets the value of the attached .
///
/// The control to get the menu for.
/// The menu of the control.
public static NativeMenu? GetMenu(AvaloniaObject o) => o.GetValue(MenuProperty);
}
}