Andreas Schooll
Topic Author
Posts: 25
Joined: 30 Sep 2013, 16:58

Is there a way to create a autoscrolling TextBox

27 Feb 2014, 16:45

Hi,

i want to create a single line TextBox that scrolls the cursor into view if the content gets larger than the TextBox width. This is for a filename input box.

I tried to manually adjust the TextBox scrollviewer position in the TextChanged delegate but that did not work out.

Is there any way to achieve this?

best regards,
Andreas
 
User avatar
sfernandez
Site Admin
Posts: 1915
Joined: 22 Dec 2011, 19:20

Re: Is there a way to create a autoscrolling TextBox

28 Feb 2014, 11:05

I think I don't understand what you are trying to achieve.

Because when I move the caret of the TextBox in my PC with the arrow keys, the text is correctly scrolled to maintain the caret always visible (I noticed that caret disappears when it is moved after the last character, this is a bug and will be fixed as soon as possible).
 
Andreas Schooll
Topic Author
Posts: 25
Joined: 30 Sep 2013, 16:58

Re: Is there a way to create a autoscrolling TextBox

28 Feb 2014, 14:14

Thanks for your reply. I found the reason: The textbox had wrap enabled. After setting it to NoWrap it works as expected :)

best regards,
Andreas

Who is online

Users browsing this forum: No registered users and 0 guests