Separate outlining for multiple SyntaxEditor controls sharing the same document instance

SyntaxEditor for WPF Forum

Posted 4 years ago by Shiouliang Quek
Version: 15.1.0624
Avatar

Hi,

     It appears that there is a OutliningManager for a Document, providing the code outlining functionality.

     For the case where multiple SyntaxEditor controls sharing one document, collapsing/expanding the code in one SyntaxEditor causes the same to happen on the other SyntaxEditor since they are sharing the same document.

     May I know if there is a way to achieve the behavior where multiple SyntaxEditor controls can collapse/expand code indenpendently, and still sharing the same document. Or is there any plan to support this?

     Thanks.

Comments (2)

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

Hello,

Sorry but we store the outlining data at the document level so all views that share that document will have the same outlining states.  We don't have any plans to make those independent.  You would need to use multiple documents to achieve what you are after.


Actipro Software Support

Posted 4 years ago by Shiouliang Quek
Avatar

By using multiple documents, we lose the sharing of undo/redo stack in one document for multiple views.

Pls consider to support this use case where multiple views sharing one document (ie: multiple editor editing same document, with one undo redo stack), having independent outlining states.

Visual Studio is having similar functionality, we are trying to do the same. Thanks.

The latest build of this product (v2019.1 build 0683) 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.