Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 125169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:06:58+00:00 2026-05-11T05:06:58+00:00

I need to create a Web-based Dashboard tool for a LOB application. Essentially users

  • 0

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.

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.

So here’s my questions:

  1. How do I go about hosting a web page inside my WPF app
  2. How could I hide/remove buttons based on whether I’m inside my WPF app vs. inside something like IE explorer?
  3. 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?
  4. What’s a better approach?

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.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T05:06:59+00:00Added an answer on May 11, 2026 at 5:06 am

    You can host a web page in a WPF application using the WebBrowser controls that was added in .NET 3.5 SP1:

    <Grid>     <WebBrowser Name='browser' /> </Grid> 

    And in the code-behind you have to set the Uri to your page and an object (which should be com-visible) that is to be called from the java script:

    public partial class Window1 : Window {     public Window1()     {         InitializeComponent();          string uri = AppDomain.CurrentDomain.BaseDirectory + 'TestPage.html';         this.browser.Navigate(new Uri(uri, UriKind.Absolute));         this.browser.ObjectForScripting = new ScriptingHelper();     }      [ComVisible(true)]     public class ScriptingHelper     {         public void ShowMessage(string message)         {             MessageBox.Show(message);         }     } } 

    And finally in your page you must call the code using window.external like below:

    <head>     <title></title>      <script type='text/javascript'>         function OnClick()         {             var message = 'Hello!';             window.external.ShowMessage(message);         }     </script> </head> <body>     <a href='#' onclick='OnClick()'>Click me</a> </body> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 177k
  • Answers 177k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can copy your .classpath and .project files to the… May 12, 2026 at 3:26 pm
  • Editorial Team
    Editorial Team added an answer Take a look at the "post RGB to HSV" sample… May 12, 2026 at 3:26 pm
  • Editorial Team
    Editorial Team added an answer RIA Models There are two different models for integrating Silverlight… May 12, 2026 at 3:26 pm

Related Questions

I need to create a slide show of some images that can go full
Briefly, I need to create a server whose back end queries information from another
I am working on a Web based organisation tool. I am not aiming the
I want to create a webservice that allows users to enter the longitude and

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.