The effective dark mode state has changed (Automatic dark mode only).
| C# | void object_DarkModeChange(object sender, AxSftDateLib20._ISftDateEvents_DarkModeChangeEvent e); |
| VB.NET | Private Sub object_DarkModeChange(ByVal sender As Object, ByVal e As AxSftDateLib20._ISftDateEvents_DarkModeChangeEvent) Handles object.DarkModeChange |
| C++ | void OnDarkModeChangeobject(VARIANT_BOOL Active); |
| C | HRESULT OnDarkModeChangeobject(VARIANT_BOOL Active); |
object
Active
The new effective dark mode state (True if dark mode is now active).
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