Our application edits text files that can come from various OS platforms - Windows, Unix, Linux, etc.
These files are used for machine control purposes and need to preserve contents exactly (except as explicitly changed in text editor).
We have a control on the screen that allows user to choose which EOL character sequence to insert into the text when Enter key is pressed.
This is so the file can be edited in Windows client, but remain consistent with intended platform once changes are saved.
We intercept Enter key and insert what we want as end-of-line chars. That's working OK.
But it seems that EditControl is automatically changing all our end-of-line chars whenever any change is made to text.
So we have to go back through and change them all back to original values.
We were just wondering if there's an option to avoid the automatic changing of end-of-line chars.
Basic WPF TextBox doesn't seem to do this automatic changing.