Getting Started

This tutorial will walk you through the creation of a sample application that contains a RadSlider.

Assembly References

In order to use the RadSlider control in your projects, you have to add references to the following assemblies:

  • Telerik.Windows.Controls

Adding RadSlider to the Project

You can add RadSlider in XAML or in code as demonstrated in examples 1 and 2 respectively.

In order to use the RadSlider control, you need to declare the following namespace: xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

Example 1: Adding RadSlider in XAML

<telerik:RadSlider Value="5" Minimum="0" Maximum="100" SmallChange="1" /> 

Example 2: Adding RadSlider in code

RadSlider slider = new RadSlider(); 
slider.Maximum = 100; 
slider.Minimum = 0; 
slider.Value = 5; 
slider.SmallChange = 1; 
Dim slider As New RadSlider() 
slider.Maximum = 100 
slider.Minimum = 0 
slider.Value = 5 
slider.SmallChange = 1 

Figure 1: Result from Examples 1 and 2

RadSlider

By default the Value of the RadSlider will be constantly updated while the thumb is dragged. If you want the value to be updated only once, when the thumb is released, you can set the IsDeferredDraggingEnabled property to True.

See Also

In this article
Not finding the help you need? Improve this article