When the initial value of the sliders IsEnabled Property is false, it is not possible to fully enable it again. After setting IsEnabled to true the thumb is not draggable, but I can click the track and thus change the value.
<UserControl x:Class="SilverlightApplication8.Page_SliderTest" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" |
Width="400" Height="300"> |
<Grid x:Name="LayoutRoot" Background="White"> |
<StackPanel> |
<Button x:Name="BtnTest01" Content="Enable slider"></Button> |
<telerik:RadSlider x:Name="Sld01" Minimum="1" Maximum="100" IsEnabled="False"></telerik:RadSlider> |
</StackPanel> |
</Grid> |
</UserControl> |
using System; |
using System.Collections.Generic; |
using System.Linq; |
using System.Net; |
using System.Windows; |
using System.Windows.Controls; |
using System.Windows.Documents; |
using System.Windows.Input; |
using System.Windows.Media; |
using System.Windows.Media.Animation; |
using System.Windows.Shapes; |
namespace SilverlightApplication8 |
{ |
public partial class Page_SliderTest : UserControl |
{ |
public Page_SliderTest() |
{ |
InitializeComponent(); |
BtnTest01.Click += new RoutedEventHandler(BtnTest01_Click); |
} |
void BtnTest01_Click(object sender, RoutedEventArgs e) |
{ |
Sld01.IsEnabled = true; |
} |
} |
} |