
I have a scenario where I want to drag a TreeViewItem from a WPF TreeView into the SyntaxEditor, so that the TreeViewItem's header text is inserted into the SyntaxEditor's text.
I have some code together but I was wondering the following:
1. Is there any function built into the SyntaxEditor for performing drag and drop on it? Perhaps something that accepts the DragEventArgs parameter, and lets the editor figure out where to add the data?
2. If there isn't such a method, is there a way to convert mouse coordinates to caret coordinates so I can control where the text is inserted by moving the SyntaxEditor's caret to where my mouse pointer is?
3. Is there a special insertion function I can use which inserts text at the editor's caret position and/or a mouse position?
4. Are there any drag and drop samples that I may have missed or discussion about this in the documentation? I looked myself and didn't see anything but maybe I missed something.
Thanks,
-Craig
I have some code together but I was wondering the following:
1. Is there any function built into the SyntaxEditor for performing drag and drop on it? Perhaps something that accepts the DragEventArgs parameter, and lets the editor figure out where to add the data?
2. If there isn't such a method, is there a way to convert mouse coordinates to caret coordinates so I can control where the text is inserted by moving the SyntaxEditor's caret to where my mouse pointer is?
3. Is there a special insertion function I can use which inserts text at the editor's caret position and/or a mouse position?
4. Are there any drag and drop samples that I may have missed or discussion about this in the documentation? I looked myself and didn't see anything but maybe I missed something.
Thanks,
-Craig