Skip to main content

TryEnterBackground Method

Tells the application that it should attempt to enter its background state. For example on OSX this would be [NSApp hide]

Definition

Namespace: Avalonia.Controls.ApplicationLifetimes
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

bool TryEnterBackground()

Return Value

Boolean
true if it was possible and the platform supports this. false otherwise

See Also

Reference

IActivatableLifetime Interface
Avalonia.Controls.ApplicationLifetimes Namespace