We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to highlight multiple fields

Hi,


We are developing a document template builder that uses XML nodes. A node contains two tags: start and end. Currently, each tag is a separate Field and, thanks to the Selection module, we have managed to highlight the selected tag.

However, we would like to highlight both XML tags (separate Fields) that make up the XML node when the user selects any of the XML node's tags. Unfortunately, we are having trouble retrieving the other tag (remember that it is a Field), as we cannot loop or relate Fields in any way.

In summary, is it possible to loop, get or relate non selected Fields in a DocumentEditor? If not, is it possible to achieve the previously described functionality in any way?


Thank you very much in advance.

Unai.


2 Replies

MA Mugunthan Anbalagan Syncfusion Team February 15, 2023 01:37 PM UTC

Hi Unai,

 

Currently, we do not have support for highlighting multiple fields in the Document Editor. Could you please confirm whether your end requirement is a syntax editor like the one below?

 

https://www.syncfusion.com/wpf-controls/syntax-editor

 

Regards,

Mugunthan A



UB Unai Biurrun February 27, 2023 11:32 AM UTC

Hi Mugunthan Anbalagan,



Thank you for your response. I am sorry to hear that.

In regards to your question: no, our end requirement is not a syntax editor. It aims to mimic the XML template system that Microsoft Word 2003 had. 

Anyways, I tried to execute the demo provided in  the demo Git without success, so I cannot confirm if the WPF Syntax editor could meet our requirements.



Thank your for your time.

Regards,

Unai.


Loader.
Up arrow icon