Table of Contents

Method SetSystemAppearanceIfDebug

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

SetSystemAppearanceIfDebug()

Sets the application's appearance to match the system appearance if the application is running in debug mode and a debugger is attached. Also sets the appearance to dark mode if the command line argument is specified to enable dark mode.

public static PropertyUpdateResult SetSystemAppearanceIfDebug()

Returns

PropertyUpdateResult

Remarks

This method applies the system appearance only when the application is running on Windows 11 or later and a debugger is attached. It has no effect if these conditions are not met.