Expand all outlines in custom language

Is there a way to programmatically expand or collapse all the outlines in a custom language like XMLLanguage used in an EditControl?

3 Replies

DR Durga Rajan Syncfusion Team March 7, 2018 08:29 AM UTC

Hi Mike, 

Thanks for contacting Syncfusion support. 

We have checked your query “Is there a way to programmatically expand or collapse all the outlines in a custom language” and prepared sample which tries to meet your requirement. Built-in RoutedCommands are available in EditControl to collapse or expand the block of codes. We suggest you to use the “CollapseAll” and “ExpandAll” commands to collapse or expand outline.  We have prepared sample for the same. In this sample we have menu item to collapse and expand the block of codes and bound the RoutedCommands to the MenuItems. Please download the sample for the same from below location, 

Code Example : 

<MenuItem Command="{x:Static syncfusion:EditCommands.ExpandAll}" CommandTarget="{Binding ElementName=Edit1}"/> 
<MenuItem Command="{x:Static syncfusion:EditCommands.CollapseAll}" CommandTarget="{Binding ElementName=Edit1}"/> 



If we have misunderstood your query please get back to us with more details about your requirement. This would help us to provide solution at earliest. 

Regards, 
Durga S. 



MA Mike Anderson March 7, 2018 04:56 PM UTC

Ok, well that seems pretty straightforward, thanks.


DR Durga Rajan Syncfusion Team March 7, 2018 07:53 PM UTC

Hi Mike,

Thanks for the update. Please let us know whether you need any further assistance.

Regards,
Durga S.

Loader.
Up arrow icon