- Andreas Schooll
- Posts: 25
- Joined:
Is there a way to create a autoscrolling TextBox
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
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
-
sfernandez
Site Admin
- Posts: 3152
- Joined:
Re: Is there a way to create a autoscrolling TextBox
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).
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
- Posts: 25
- Joined:
Re: Is there a way to create a autoscrolling TextBox
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
best regards,
Andreas
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest