We would like to use the xamSyntaxEditor in a project we are developing, but we need the ability to load the text from a memory stream rather than a file. I am not seeing anyway to do this directly (version 16.1).
Reason for this is that we are generating a text document (an assembly language listing <1 MB ) and would like to display it to the user without necessarily saving it to file.
Any suggestions are appreciated!
Thanks,
Gary
Hello Gary,
I have been investigating into your requirement to be able to load your text from a memory stream rather than a file in version 16.1, and this should currently be possible. I have tested against the latest (and final) service release of Infragistics for WPF 2016.1, specific version 16.1.20161.2231 and there is an overload on the TextDocument’s Load method returned by the XamSyntaxEditor.Document property that takes a Stream. You should be able to use this to load the text to your editor.
Please let me know if you have any other questions or concerns on this matter.