This is a migrated thread and some comments may be shown as answers.

Slider clip Ticks

2 Answers 128 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 07 Dec 2012, 09:49 AM
Hi,
my problem is that the slider clips my ticks, because he think they are to long.
Set ClipToBounds to false does not help to solve this issue.

Here is my code:
<telerik:RadSlider Grid.Row="3"
                                Grid.Column="0"
                                Grid.ColumnSpan="2"
                                Margin="25,0,25,10"
                                Value="{Binding SlectedTimeSpan}"
                                VerticalAlignment="Bottom"
                                Minimum="0"
                                Maximum="24"
                                TickFrequency="8"
                                TickPlacement="BottomRight"
                                ClipToBounds="False"
                                IsSnapToTickEnabled="True">
                        <telerik:RadSlider.TickTemplate>
                            <DataTemplate>
                                <StackPanel ClipToBounds="False">
                                    <Ellipse Width="5"
                                             Height="5"
                                             Fill="Black"
                                             HorizontalAlignment="Center" />
                                    <TextBlock Text="{Binding StringFormat=+{0} Std.}"
                                               HorizontalAlignment="Center" />
                                </StackPanel>
                            </DataTemplate>
                        </telerik:RadSlider.TickTemplate>
                    </telerik:RadSlider>

You can find a picture of the result as attached file.

Can anybody help me with this issue???

2 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 07 Dec 2012, 12:45 PM
Hi Mark,

Thank you for your report. This is a known bug and it is logged in our PITS. Following this link you can track the item's progress and vote for it.

However there is a possible workaround - you can put the RadSlider in a ScrollViewer and set the RadSlider's MinWidth property.

I used your code snippet to create a sample solution demonstrating this workaround.

Regards,
Stefan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Mark
Top achievements
Rank 1
answered on 07 Dec 2012, 02:54 PM
Thank you for your help,
it works fine.

For your issue trackers:
The "error" only occurs while the slider was on the last tick. All other ticks works well.
Tags
Slider
Asked by
Mark
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Mark
Top achievements
Rank 1
Share this question
or