On WinForm I have added WPF control (Infragistic's XamSyntaxEditor)
http://stackoverflow.com/questions/4350862/wpf-events-in-winforms
But I am not sure how to write or hook custom event with WPF control events .
Hello Aparna,
Thank you for your post. I have been looking into it and I can suggest you use the XamSyntaxEditor’s Document’s TextChanged event in order to achieve the result you want. I put a sample together which shows how to do so. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hi Stefan ,
Thanks for your reply , I already able to hook the event with contril .
But I am facing new problem with XamSyntaxEditor .
I have user Control 'codeEditor' ,which was previously using RTF as editor , now we want to replace RTF with XamSyntaxEditor.
Now this userControl is refered many places ,where we initialize text to Editor's document , user performs operation like modify,copy paste etc .
It works everywhere fine , but on Few forms where same control is refered (with XamSyntaxEditor ) ,I get exception :
"Value can not be null ,Parmeter name newOrReformattedLines"
Its really strange that same usercontrol works on similar kind of forms and on some forms EXE crashes with this exception.
'newOrReformattedLines' is related to XamsyntaxEditor ,I was debugging into code since 2 days and no clue how to resolve this exception.
-Aparna