Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to set focus to XBAP

$
0
0

Greetings,

 I'm developing a WPF(XBAP) application.  There is a requirement that has me a bit stumped.   Basically the user experience is if they select the browser window (after minimizing it, working in a different app, etc) they wish to be able to start typing and it would be picked up by the app.

  I was planning to use the window on focus event to essentially call the xbap and set the focus.  However, when  I use the window.onfocus event on the html page it is firing off. 

However when I add the iframe for the xbap it no longer seems to fire. I’m not sure if the xbap is taking over some of the window events.

 So my question would be does any one know of a solution?  Is there something in BrowserInteropHelper I can leverage?

Currently hosting it in an IE11 browser.

Thanks

Pat


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>