FYI - I am a C# / WPF newbie.
I have been tasked with incorporating context sensitive help via the F1 key in an existing C# WPF application.
We do not want to go the route of using chm (windows html help) but instead we would like to open a particular page on a wiki that can be more easily maintained and updated.
All of the examples I have been able to find demonstrate how to use chm files. Furthermore, they require adding the help provider to each element which could prove very time consuming.
Instead I have been kicking around the idea of trying to determine which control (or at least it's container or window) has focus in order to determine the page to open. I will then match its name to a url in our database. For this I tried recursively looping over the FrameworkElement objects returned from the VisualTreeHelper, but it returns a staggering number of elements and strikes me as an inefficient way of trying to find what I want.
Does anyone have suggestions on what my best approach might be? Can you direct me to samples of opening a browser and passing a URL to it from within a WPF app based on a key press?
Any help is appreciated. I have been spinning my wheels on this for too long already!
LALCB