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;
}