Hi,
I tried to use RadSyntaxEditor with MVVM approach but I did not succeed.
I followed all tips you gave on the forum but it still doesn't respond to all my needs.
I try to create a custom dependency property and bound my textdocument (located in my view model) in it but the dependency property got the radsyntaxeditor object and not TextDocument or content in TextDocument.
With this solution I was able to initialize the value of the document in RadSyntaxEditor but the callback method was not able to capture modification in the content of the document. So when I do modificaton, I wasn't able to applied them in my TextDocument in VM.
Finally I use events DataContextChange to init and DocumentChangeContent to update mine but it's not MVVM approach...
Do you have some advice for me to succeed in the MVVM approach ?