That would be great to add an expand/collapse feature in the XamSyntaxEditor.
I attached an example below: