Unplanned
Last Updated: 27 Jun 2018 17:56 by ADMIN
ADMIN
Martin Ivanov
Created on: 03 Apr 2017 14:12
Category: Slider
Type: Bug Report
2
Slider: The selection range UI is wrong when the slider is defined in a DataTemplate or ControlTemplate
This is reproducible when the deferred dragging is enabled and the slider is defined in a template (DataTemplate or ControlTemplate). The selection values are correct, but the UI of the selection is not properly updated. 

To work this around you can subscribe for the Loaded event of slider and reset its IsSelectionRangeEnabled property.

private void RadSlider_Loaded(object sender, RoutedEventArgs e)
{
	radSlider.IsSelectionRangeEnabled ^= true;            
	radSlider.IsSelectionRangeEnabled ^= true;            
}
2 comments
ADMIN
Martin
Posted on: 27 Jun 2018 17:56
Hello John

Thank you for sharing this additional detail. And also please accept my apologies for the delay.

Regards,
Martin Ivanov
John
Posted on: 04 Apr 2017 06:19
Hi Martin,

In my case, I work with the double selection properties and I have to set also SelectionStart before SelectionEnd.

Best Regards,

John