(Tested with 18.3)
We have `CustomLabels` bound to an ObservableCollection:
public ObservableCollection<Syncfusion.Windows.Controls.Input.Items> Labels { get; set; }
= new ObservableCollection<Syncfusion.Windows.Controls.Input.Items>();
<sf:SfRangeSlider ShowCustomLabels="True" CustomLabels="{Binding Labels}" LabelPlacement="BottomRight" />
This works initially. However, the control doesn't seem to listen to any changes to the collection later on — neither if I call ObservableCollection.Clear() or ObservableCollection.Add(), nor if I explicitly call OnPropertyChanged(nameof(Labels)).
If I explicitly access the slider itself in the view model and change the Slider.CustomLabels, the labels do get updated, but that's more of a workaround (and I have performance concerns). So, this works, but this isn't great:
//if (Slider != null)
//{
// Slider.CustomLabels = null; // explicitly null to trigger a change
// Slider.CustomLabels = Labels;
//}
Is there something I can do to explicitly trigger a labels update (preferably without needing to access the control from the view model), or is this supposed to work automatically?