Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
xamSyntaxEditor load from memory stream rather than file?
posted

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

Parents
No Data
Reply
  • 34810
    Offline posted

    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.

Children
No Data