Expand/Collapse Events - Do they exist

SyntaxEditor for WPF Forum

Posted 8 years ago by FLORIAN VOSS
Version: 16.1.0632
Avatar

I use SyntaxEditor for json & xml editing.

I want to override the behavior of the expand buttons to allow full expand of all children of a button ( mouse + control) or expand of one level down (i.e. all nodes under current level). 

I can't find a good way to do this.  Any advice welcome.

Comments (1)

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

Hello,

I assume you mean Ctrl+Clicking on a [+] box in the outlining margin here?  Unfortunately there's no way to intercept what's happening there now, which is toggling the nodes that are on the line when a box is clicked.

Perhaps you could add a context menu item or a main menu item with a keyboard shortcut related to expanding out all descendants of the outlining node that contains the caret?  The outlining manager has a GetStartingNodes method we call to get all the nodes that begin on the text range of the line.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.