HeaderPane
Main
Hide
Share Link
Print

Controls of Other Softel vdm Products

The controls of the other Softel vdm .NET products (SftTree/NET, SftTabs/NET, SftDate/NET, SftBox/NET and SftMask/NET) and the SftSlider control of SftStyle/NET have dark mode and high contrast support of their own, with the DarkMode and HighContrastMode properties. The SftStyle component does not change these controls; an application sets their properties to the values of the component's properties, or to Auto to follow the Windows settings as the component does with Auto:

C#

sftStyle1.DarkMode = DarkModeEnum.Auto;
sftSlider1.DarkMode = DarkModeEnum.Auto;

VB

SftStyle1.DarkMode = DarkModeEnum.Auto
SftSlider1.DarkMode = DarkModeEnum.Auto

Each product defines DarkModeEnum in its own namespace, so the value is set with the enum of the control's product.

Standard Controls Inside Them

Standard controls that an application places inside a control of another Softel vdm product, such as text boxes on an SftTabs/NET tab page, are styled by the SftStyle component on the .NET Framework while that control is in dark mode as well, so they match the control they are on; while that control is light, they stay light. The component reads that control's state when it styles the form and when it switches, so set the control's DarkMode before the component's. On .NET 10 (or later) the dark mode of Windows Forms applies to them as to every standard control, whatever the state of that control.