Use a webpage as the UI in a C# desktop application?

前端 未结 6 1483
予麋鹿
予麋鹿 2021-01-31 02:39

I\'m building a C# desktop app with a simple UI. Due to my familiarity with HTML/CSS, and a previous web-based iteration of a very similar app, it would be ideal if I could re-u

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-31 03:30

    You could try adding a Web Browser control to a forms application to show your page. But this will need to be remotely hosted as the code will not be able to execute locally, except if you listen for the specific links in c# and then perform the actions.

    You could also try your hand at WPF which is a new technology to create good looking gui's with mark-up much like html, which you'll pick up pretty quickly with your html experience.

提交回复
热议问题