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

Increase scroll step

1 Answer 57 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Keylight
Top achievements
Rank 1
Keylight asked on 02 Nov 2010, 10:48 PM
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.

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 03 Nov 2010, 01:34 PM
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
Tags
RichTextBox
Asked by
Keylight
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or