Table of Contents

Method SetPreferredAppMode

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

SetPreferredAppMode(AppThemeMode)

Sets the preferred application theme mode (internal uxtheme API).

public static extern bool SetPreferredAppMode(MswUtils.NativeMethods.AppThemeMode preferredAppMode)

Parameters

preferredAppMode MswUtils.NativeMethods.AppThemeMode

The preferred theme mode to set for the application.

Returns

bool

true if the operation succeeds; otherwise, false.

Remarks

Available in Windows 10 build 1903 (May 2019 Update) and later.