Hi guys,
After getting my hands on the latest build of SyntaxEditor, I was finally able to implement stuff like parameter hints - great! However, it seems that I have to handle the RequestNavigate separately for each of the types of info I wish to display, which in my case is completion lists, parameter info and quick info. The way I see it, that leads to three different places where I have to handle this event, or at least bind an event handler to it. I then support multiple languages, where I have to support the same things (completion, parameters, quick info) but in a different way, leading to quite a bit of event handler assigning :). Why not have an event on the SyntaxEditor it self, where you can bubble these events up to? In my case, I have to treat most of the links with the exact same code, so it would really make the most sense - perhaps other customers are in the same situation?
Perhaps this is already possible, but I haven't been able to find anything about it in the documentation. Let me know what you think :)
Update: Okay, I might be doing something wrong here, but even doing it the hard way and manually hooking up these events doesn't seem to work. Before opening a session, I add an eventhandler like this:
session.RequestNavigate += new System.Windows.Navigation.RequestNavigateEventHandler(session_RequestNavigate);
And the link is a simple link to Google, yet when I click it, absolutely nothing happens - my session_RequestNavigate method is not called at all. Am I missing something here?
[Modified at 11/22/2011 09:01 AM]
After getting my hands on the latest build of SyntaxEditor, I was finally able to implement stuff like parameter hints - great! However, it seems that I have to handle the RequestNavigate separately for each of the types of info I wish to display, which in my case is completion lists, parameter info and quick info. The way I see it, that leads to three different places where I have to handle this event, or at least bind an event handler to it. I then support multiple languages, where I have to support the same things (completion, parameters, quick info) but in a different way, leading to quite a bit of event handler assigning :). Why not have an event on the SyntaxEditor it self, where you can bubble these events up to? In my case, I have to treat most of the links with the exact same code, so it would really make the most sense - perhaps other customers are in the same situation?
Perhaps this is already possible, but I haven't been able to find anything about it in the documentation. Let me know what you think :)
Update: Okay, I might be doing something wrong here, but even doing it the hard way and manually hooking up these events doesn't seem to work. Before opening a session, I add an eventhandler like this:
session.RequestNavigate += new System.Windows.Navigation.RequestNavigateEventHandler(session_RequestNavigate);
And the link is a simple link to Google, yet when I click it, absolutely nothing happens - my session_RequestNavigate method is not called at all. Am I missing something here?
[Modified at 11/22/2011 09:01 AM]