Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TabControl > RadTabControl - Logical scrolling repeat buttons

Not answered RadTabControl - Logical scrolling repeat buttons

Feed from this thread
  • Frankie avatar

    Posted on Nov 22, 2011 (permalink)

    Hello,

    I would like to apply logical scrolling to the ScrollViewer RepeatButtons, so I can scroll by one RadTabItem at a time, instead of by a set physical measurement. Out of the box, RadTabControl appears to support logical scrolling for RadTabItems when using the mouse scroll wheel. It even includes animation when scrolling from one RadTabItem to the next. I would like to replicate this same behavior when a user clicks on the ScrollViewer RepeatButtons. Any ideas how to do this?

    Thanks,
    Frankie

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on Nov 23, 2011 (permalink)

    Hi Frankie,

    The RadTabControl has a ScrollMode property which gets or sets the type of scrolling that will occur when the user presses the scroll buttons. It is an enumeration of type TabControlScrollMode and exposes the following values:
    • Pixel - Scroll 16 pixels per button click
    • Item - Scroll one item per button click
    • Viewport - Scroll an amount equal to the available viewport width
    In your scenario you can set the property to Item as this should apply the required scroll behavior.

    Give it a try and let me know if it works for you.

    All the best,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

  • Frankie avatar

    Posted on Nov 23, 2011 (permalink)

    Tina,

    Yes, this works. This was the exact behavior I was looking for. Thank you very much for your help.

    -Frankie

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TabControl > RadTabControl - Logical scrolling repeat buttons
Related resources for "RadTabControl - Logical scrolling repeat buttons"

WPF TabControl Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]