XBAP Browser Control - Invoking Click event of the html Input type button
Posted
by maharaj
on Stack Overflow
See other posts from Stack Overflow
or by maharaj
Published on 2010-05-12T18:30:35Z
Indexed on
2010/05/12
18:34 UTC
Read the original article
Hit count: 278
Hi,
Here is what I have.
1.XBAP application with WPF Browser control, hosted on Page1.xaml 2.XBAP in Full Trust, certificate installed in client browser 3.Once the XBAP loaded, the browser control is navigated to some third party site. 4.We are using MVVM for XAML stuff So, when a certain page is loaded, I attach click event handler to the input button with id="submit" on the html page displayed in the browser control (used the code similar to whats in this URL http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/a4f0e4d0-78bf-44c5-a3fe-8faf2e7a0568/). It works just fine as long as I dont make a wcf web service call in my ViewModel, before or after I attach this event hander. Idea is to invoke the click event for the html button and grab the data from the html page before calling the webservice to save data from the page.
Here is the issue:
When I make the wcf webservice call (sync or async, it doesnt matter) the click event doesnt happen but if I comment out the the code for wcf service call the click event of the html input of type button gets invoked.
Any help would be appreciated.
Thanks,
Salil
© Stack Overflow or respective owner