HeaderPane
Main
Hide
Share Link
Print

Slider Looks and the Value Tip

SftSlider.Look selects how the slider is drawn. Each look has light and dark colors (SftSlider.DarkMode); with SftSlider.HighContrastMode set to Auto or On, the slider is drawn in the Standard look with the colors of the contrast theme.

ValueDescription
SliderLookEnum.ThemedThe track and thumb of the Windows theme, in dark mode those of the dark theme, as the TrackBar control draws them. This is the default. Without visual styles, or with UseThemes set to False, it is drawn like the Standard look.
SliderLookEnum.FluentA thin rounded track filled up to the thumb with the accent color and a round thumb, as Windows 11 draws its sliders.
SliderLookEnum.StandardA plain track and thumb in system colors.

In high contrast the slider is always drawn in the Standard look with the colors of the contrast theme.

Accent Color

SftSlider.AccentColor is the color of the filled part of the track and of the center of the thumb in the Fluent look, and of the part of the track between the two thumbs of a range slider in the other looks. The default is SystemColors.Highlight, which is replaced by its dark counterpart in dark mode; a color the application sets is used in both modes, unless it is a system color. In high contrast the theme's highlight color is used, and a disabled slider draws this part in the gray of disabled text.

Value Tip

While the user drags a thumb, a tip next to the thumb shows its value, formatted with SftSlider.TickLabelFormat. While the band between the thumbs of a range slider is dragged, it shows both values. The tip disappears when the mouse button is released. SftSlider.ShowValueToolTip set to False turns it off (True by default).