HeaderPane
Main
Hide
Share Link
Print

DarkModeChange Event, SftDate Object

The effective dark mode state has changed (Automatic dark mode only).

Syntax

C#void object_DarkModeChange(object sender, AxSftDateLib20._ISftDateEvents_DarkModeChangeEvent e);
VB.NETPrivate Sub object_DarkModeChange(ByVal sender As Object, ByVal e As AxSftDateLib20._ISftDateEvents_DarkModeChangeEvent) Handles object.DarkModeChange
C++void OnDarkModeChangeobject(VARIANT_BOOL Active);
CHRESULT OnDarkModeChangeobject(VARIANT_BOOL Active);

object

A SftDate object.

Active

The new effective dark mode state (True if dark mode is now active).

Comments

The DarkModeChange event occurs when the effective dark mode state changes while DarkMode is set to darkSftDateAuto and the user changes the Windows setting. p An application that defines its own colors sets the variant for the new mode in this event, as colors defined by the application are used as given in both modes.

See Also SftDate Object | Object Hierarchy | Dark Mode


Last Updated 11/29/2026 - (email)
© 2026 Softel vdm, Inc.