I need to implement a slider control with range selection. I want to modify the design of the thumbs that indicate the start (end) of the selection so that they show the numerical value of where the selection starts (ends).
To do so, I tried changing the template of the thumbs:
However, this doesn't work because the binding tries to find the property SelectionStart in the Thumb object instead of the RadSlider object. (error message: "Property 'SelectionStart' was not found in type 'Thumb'").
Is there a way I can bind the value of the text block to SelectionStart property of the RadSlider? Or can you suggest other ways to solve my problem?
To do so, I tried changing the template of the thumbs:
<
ControlTemplate
x:Key
=
"HorizontalRangeStartThumbTemplate"
TargetType
=
"Thumb"
>
...
<
TextBlock
Text
=
"{TemplateBinding SelectionStart}"
/>
...
</
ControlTemplate
>
However, this doesn't work because the binding tries to find the property SelectionStart in the Thumb object instead of the RadSlider object. (error message: "Property 'SelectionStart' was not found in type 'Thumb'").
Is there a way I can bind the value of the text block to SelectionStart property of the RadSlider? Or can you suggest other ways to solve my problem?