Increase scroll step

2 posts, 0 answers
  1. Keylight
    Keylight avatar
    6 posts
    Member since:
    Nov 2009

    Posted 02 Nov 2010 Link to this post

    In the RichTextBox demo (http://demos.telerik.com/silverlight/#RichTextBox/MSWord) the scroll step is really small.  If you click on the up / down arrows of the scroll bar, it looks like it is scrolling one pixel at a time.  Clicking on long vertical area of the scroll bar seems to scroll it about one line at a time.  The only reasonable way to scroll with the scroll bar is to click and drag the bar itself.

    Is there a way to increase the scoll bar's scroll step?  Or mimic the functionality of a normal textbox? e.g. (1) clicking on the arrows scrolls one line at a time and (2) clicking on the long vertical area scrolls one page at a time.
  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 03 Nov 2010 Link to this post

    Hi Keylight,

    Actually, by default scrolling using the arrows is really done one pixel at a time. This behavior will be changed in the official Q3 2010 Release, which is due around mid-November. 
    Currently, you can change the scrolling step in code-behind like this:

    this.radRichTextBox.VerticalScrollBar.SmallChange = 80; // the measuring unit is px
    this.radRichTextBox.VerticalScrollBar.LargeChange = 200;
    SmallChange refers to the pixels that will be skipped when pressing the arrow buttons and LargeChange is used when clicking in the vertical area above or below the pointer.

    You can use the static methods of Telerik.Windows.Documents.Model.Unit to convert from other measuring units to dip, if you want to set the value in other units.

    Sincerely yours,
    Iva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top