It works based on the current value. The property named Value, provides us with an integer, which denotes the current position. You can programmatically set it to move the slider thumb to a smaller or larger value.
The Minimum and Maximum properties denote the minimum and maximum value that the slider can accept. In our example, we set it to 0 (zero) and 100 (hundred), respectively.
The other control, TextBlock, in our example code, has a data binding to the Value property of the slider that we have in the XAML. It displays the current value of the slider in a plain text format.