Collasped regions

SyntaxEditor for WPF Forum

Posted 9 years ago by Mick George - Software Engineer, CNC Software, Inc.
Version: 10.2.0531
I have added links to images showing what I am trying to accomplish.

When I load a file all collapsible regions are in an initial collapsed state.
Document Loaded

When the user clicks on a collapsed "#region" to expand it, all of the collapsed regions contained within that "#region" automatically expand.
Expanded "#region"

However, what I am actually trying to accomplish is that when a "#region" is expanded all other regions contained within do not expand.
Desired result

An interesting observation, if I load a file and expand a "#region" but then manually collapse all regions it contains I can then toggle the "#region" and now all the regions contained within do not expand, they stay collapsed? This is actually the functionality I am looking for.

Below is the constructor of my outlining source class:

        /// <summary>
        /// Initializes static members of the PostOutliningSource class.
        /// </summary>
        static PostOutliningSource()
            postRegionDefinition = new PostBlockCommentNodeDefintion();
            postRegionDefinition.IsDefaultCollapsed = true;
            postRegionDefinition.IsImplementation = true;

            postBlockDefinition = new PostBlockCommentNodeDefintion();
            postBlockDefinition.IsDefaultCollapsed = true;
            postBlockDefinition.IsImplementation = true;

            postSetCallBackDefinition = new PostBlockCommentNodeDefintion();
            postSetCallBackDefinition.IsDefaultCollapsed = true;
            postSetCallBackDefinition.IsImplementation = true;

            postOutputCallBackDefinition = new PostBlockCommentNodeDefintion();
            postOutputCallBackDefinition.IsDefaultCollapsed = true;
            postOutputCallBackDefinition.IsImplementation = true;

            postMachineLayerDefinition = new PostBlockCommentNodeDefintion();
            postMachineLayerDefinition.IsDefaultCollapsed = true;
            postMachineLayerDefinition.IsImplementation = true;

Comments (2)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Mick,

It appears the initial collapse code wasn't recursing to look for nested default collapsible nodes. We've fixed this for the next maintenance release.

Actipro Software Support

Posted 9 years ago by Mick George - Software Engineer, CNC Software, Inc.
Thank you for the prompt reply and I am happy to see it was not something of my doing :)
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.