Table of Contents

Method AllowDarkModeForApp

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

AllowDarkModeForApp(bool)

Allows or disallows dark mode for the entire application (internal uxtheme API).

public static extern bool AllowDarkModeForApp(bool isDarkModeAllowed)

Parameters

isDarkModeAllowed bool

Pass true to allow dark mode for the application; otherwise false.

Returns

bool

true if the operation succeeds; otherwise, false.

Remarks

Available only in Windows 10 build 1809 (October 2018 Update).