Skip to main content

MacOSPlatformOptions Class

Definition

Namespace:Avalonia
Assembly:Avalonia.Native
Package:Avalonia.Native

OSX front-end options.

public class MacOSPlatformOptions

Inheritance: object -> MacOSPlatformOptions

Constructors

NameDescription
MacOSPlatformOptionsNo summary available.

MacOSPlatformOptions Constructor

public MacOSPlatformOptions()

Properties

NameDescription
DisableAvaloniaAppDelegateGets or sets a value indicating whether Avalonia can install its own AppDelegate. Disabling this can be useful in some scenarios like when running as a plugin inside an existing macOS application.
DisableDefaultApplicationMenuItemsBy default, Avalonia adds items like Quit, Hide to the OSX Application Menu. You can prevent Avalonia from adding those items to the OSX Application Menu with this property. The default value is false.
DisableNativeMenusGets or sets a value indicating whether the native macOS menu bar will be enabled for the application.
DisableSetProcessNameGets or sets a value indicating whether the native macOS should set [NSProcessInfo setProcessName] in runtime.
ShowInDockDetermines whether to show your application in the dock when it runs. The default value is true.

DisableAvaloniaAppDelegate Property

Gets or sets a value indicating whether Avalonia can install its own AppDelegate. Disabling this can be useful in some scenarios like when running as a plugin inside an existing macOS application.

public bool DisableAvaloniaAppDelegate { get; set; }

DisableDefaultApplicationMenuItems Property

By default, Avalonia adds items like Quit, Hide to the OSX Application Menu. You can prevent Avalonia from adding those items to the OSX Application Menu with this property. The default value is false.

public bool DisableDefaultApplicationMenuItems { get; set; }

DisableNativeMenus Property

Gets or sets a value indicating whether the native macOS menu bar will be enabled for the application.

public bool DisableNativeMenus { get; set; }

DisableSetProcessName Property

Gets or sets a value indicating whether the native macOS should set [NSProcessInfo setProcessName] in runtime.

public bool DisableSetProcessName { get; set; }

ShowInDock Property

Determines whether to show your application in the dock when it runs. The default value is true.

public bool ShowInDock { get; set; }