Skip to main content

MacOSPlatformOptions Class

OSX front-end options.

Definition

Namespace: Avalonia
Assembly: Avalonia.Native (in Avalonia.Native.dll)

public class MacOSPlatformOptions
InheritanceObject → MacOSPlatformOptions

Constructors

MacOSPlatformOptions()Initializes a new instance of the MacOSPlatformOptions class

Properties

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.

Methods

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also

Reference

Avalonia Namespace