ScrollBar in SyntaxEditor after collapsing

SyntaxEditor for WPF Forum

Posted 4 years ago by kodver
Version: 14.2.0611


Is there any way to update VerticalScrollBar after collapsing regions in SyntaxEditor?


Comments (4)

Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA

Hello, I'm sorry but at the current time the scrollbar doesn't change its appearance after collapsing a region.  We will mark this down as a suggestion.

Actipro Software Support

Posted 2 months ago by Reinhard Gruber

Any update on this bug?

There are some regions that are automatically collapsed when opening the document. The Scrollbar is not updated. So from the final users end of view the scrollbar looks as if the document can be scrolled. But the thumb stops in the middle of the trackbar. This is not intuitive for the user.

By the way: Visual Studio updates the scrollbar when collapsing regions.


Or another solution would be, if you include the logic of your free Code Writer App to the syntax editor control. There the size of the tumb is not updated, but the position of the thumb still corresponds to the visible code.

[Modified 2 months ago]

Posted 2 months ago by Actipro Software Support - Cleveland, OH, USA

Hi Reinhard,

Not yet.  It is something we had considered for the massive work we're doing for SyntaxEditor vNext (described in our blog and which should be the 2019.1 version) but we didn't get a chance to dive into this yet.  

The main problem is that the scrollbar gets set the maximum line value which is the count of document lines.  However it doesn't factor in the collapsed lines, which would realistically reduce that overall count, and would require complex two-way mapping of scrollbar units to document lines while factoring in all the collapsed regions.  It's a bit complicated, which is why it didn't make the cut for the upcoming 2019.1 version.  We would like to work on this after 2019.1 is out across all platforms and stable, since it should behave better.  We've got a TODO item for this already from before, but feel free to check in in several months again after the 2019.1 updates are out for each platform.

Actipro Software Support

Posted 2 months ago by Reinhard Gruber

Thanks a lot.

The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.