I already answered to this question in your ticket but I will post the same answer here so others from the community will be able to see the answer.
I am not sure of your implementation and more specific I am not sure if your RadSlider1
element is defined in your XAML. I suppose that the issue is caused by the fact that you try to add the RadSlider1
control twice in the visual tree (which is not allowed). In order to add this control to the children collection of the canvas30
element you will first have to remove the RadSlider1
from the children collection of its parent (the element where you have defined it in XAML). Another approach is to define the RadSlider1
control in code behind only.
Regarding your requirement to visualize strings instead of numbers as ticks in the RadSlider
control, you can use the TickTemplate
property. Further more you can define a TextBlock
which will display the string. Please note that the RadSlider
accepts only DoubleCollection
as its TickCollection
. This is why you will have to use a custom converter and convert the double value into string. This approach is implemented in the attached project. Please take a look at it and let me know if it works for you.
All the best,
Pavel R. Pavlov
the Telerik team