How to get the attributes of the pressing element on a web page in a WPF app?

Hello.
Appeared the task of writing C#+WPF+MVVM applications of analysis of web-pages. Briefly, the algorithm looks the following way:
1) the application has the ability to display web pages.
2) User selects some element on the page. More often it will be links like <a href="myhomepage.ru">My home page</a>.
3) the Program must catch this event and identify the event source. Then, get the code of this element, i.e. <a href="myhomepage.ru">My home page<!-- a--></a>.

I tried to use a standard WebBrowser, but it works as a long and using Microsoft HTML Object Library has not yet emerged to the correct result.
Looking toward
Awesomium, but I understand that my tasks will have to use pieces of javascript code that is not particularly attractive.

Could you guide me more on the right path.
September 19th 19 at 00:24
1 answer
September 19th 19 at 00:26
Solved a similar problem with the WebView control by adding JavaScript code to the page:
window.external.notify(argument)
And then intercepted it in C#:
private void WebView_ScriptNotify(object sender, NotifyEventArgs e)
{
 // e.Value - the argument
}
WebView: Minimum supported client - Windows 8 [Only the Windows Store apps]. Alas, but the app will also be used on windows 7. The General idea I get. But I would certainly, without embedding JS code. - Freeman.Wintheiser89 commented on September 19th 19 at 00:29

Find more questions by tags .NETC#WPF