The System.Windows.Controls Slider is a user-interface control in C# that allows you to select a value from a range of values by sliding a thumb along a horizontal or vertical track. It is part of the Windows Presentation Foundation (WPF) framework and is included in the System.Windows.Controls namespace.
Example 1: Basic Slider Control The following code example creates a basic slider control with a minimum value of 1, a maximum value of 10, and an initial value of 5.
Example 2: Customizing Slider Appearance The slider appearance can be customized by applying styles and templates. The following code example customizes the thumb of the slider to have a red fill color and a width of 20.
Package Library:
The System.Windows.Controls namespace is part of the .NET Framework Class Library.
C# (CSharp) System.Windows.Controls Slider - 60 examples found. These are the top rated real world C# (CSharp) examples of System.Windows.Controls.Slider extracted from open source projects. You can rate examples to help us improve the quality of examples.