Click here to Skip to main content
15,898,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
here is my scenario,
i have web page it contain may div with there id,
and I have WPF application containing button and popup,
now When I click on button popup should open with that particular div (e.g <div id=xyz)
how to do this,

What I have tried:

example,

CenturyLink Store Locator Map[^]

in this web page if we enter zip code or select state, map will give that location,
in div (<div id= map-container)

so this same div I want to open in my wpf popup

how to do this? please any help.
Posted
Comments
ZurdoDev 27-Jun-18 8:46am    
WPF? You want to open a single div from some webpage in your Windows app (WPF)? I'm confused.
Member 11859517 27-Jun-18 9:12am    
yes, I want to open div from some webpage in wpf popup.
ZurdoDev 27-Jun-18 9:36am    
I have not done WPF, but for starters, can you even open the webpage in WPF? That, to me, would be step 1. Then figure out how to just show the div.
#realJSOP 27-Jun-18 11:42am    
Yes, you can. There is no way to "open a div" though.
Richard Deeming 27-Jun-18 9:43am    
To open a webpage and scroll to a particular element, add the element ID to the URL:
https://yoursite.local/yourpage.htm#ID-OF-THE-DIV


To display a webpage in a WPF window, you'll need a web browser control. You can either use the built-in WebBrowser control, or CefSharp[^]. Just be aware that the built-in control is stuck in "IE7 mode" unless you change the registry on every computer[^] where your application runs.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900