I would like to use the selection window to indicate the current time. This requires the background to be opaque, the selection window to be very narrow and disabling the selection thumbs. Between the forum post about changing the background and some tinkering, I think I have the first two.
Using Blend, I pulled the style of the telerik:SelectionThumb control, but I'm unsure of how to hide the LeftHandle and RightHandle. I would prefer to be able to click on the selection window and drag it around, I just don't want to be able to resize it.
How do I hide the selection thumbs?
In certain special situations, I might need to re-enable sizing the selection window. Can I unhide and then rehide the selection thumbs at runtime?
Here's the default SelectionThumb style:
<
Style
x:Key
=
"SelectionThumbStyle1"
TargetType
=
"telerik:SelectionThumb"
>
<
Setter
Property
=
"Margin"
Value
=
"{StaticResource TimeBar_SelectionThumb_Margin}"
/>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"telerik:SelectionThumb"
>
<
Border
BorderBrush
=
"{TemplateBinding BorderBrush}"
BorderThickness
=
"{TemplateBinding BorderThickness}"
Background
=
"{TemplateBinding Background}"
>
<
Grid
>
<
Thumb
x:Name
=
"PART_CenterHandle"
Style
=
"{StaticResource SelectionRangeStyle}"
/>
<
Thumb
x:Name
=
"PART_LeftHandle"
HorizontalAlignment
=
"Left"
Style
=
"{StaticResource SelectionThumbHandleStyle_Flipped}"
/>
<
Thumb
x:Name
=
"PART_RightHandle"
HorizontalAlignment
=
"Right"
Style
=
"{StaticResource SelectionThumbHandleStyle}"
/>
</
Grid
>
</
Border
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>