Slider clip Ticks

3 posts, 1 answers
  1. Mark
    Mark avatar
    14 posts
    Member since:
    Sep 2012

    Posted 07 Dec 2012 Link to this post

    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. Answer
    Stefan
    Admin
    Stefan avatar
    89 posts

    Posted 07 Dec 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Mark
    Mark avatar
    14 posts
    Member since:
    Sep 2012

    Posted 07 Dec 2012 Link to this post

    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.
Back to Top