title: Hosting and interacting with a webpage inside a WPF App
body: <p>I need to create a Web-based Dashboard tool for a LOB application. Essentially users need to be able to log in to a web-site which will allow them to view stats for various bits of data, as well as see any notifications that pertain to them. Our primary application is built for the desktop using WPF. We also need to provide an identical dashboard that will be hosted in our WPF app. The main difference being that in the WPF version they will have buttons that will open up other parts of the application to make changes to the data,  or perform whatever actions are necessary.</p>
  
  <p>The main issue is that management only wants to write 1 version that can be used both on the web and in the WPF shell. They don't want to write to different version of the UI. So the solution would be to write the dashboard for the web, but host it inside our desktop application for local users, and in the browser for remote users.</p>
  
  <p>So here's my questions:</p>
  
  <ol>
  <li>How do I go about hosting a web page inside my WPF app</li>
  <li>How could I hide/remove buttons based on whether I'm inside my WPF app vs. inside something like IE explorer?</li>
  <li>If links or buttons are clicked inside the browser, how can the WPF app react to those clicks and open the pertinent screen inside the app?</li>
  <li>What's a better approach?</li>
  </ol>
  
  <p>I realize this idea is probably bad so don't flame me for it. I'm simply trying to supply management with the right approach. All suggestions are welcome.</p>
  
  <p>Thanks!</p>