1

I understand that this may not be possible, but is there anyway to make a HTML and CSS UI with a C# Backend? I much prefer CSS with UI.

Also I need it to be runnable as a .exe, not from a server or something

8
  • Yes, use Webforms. asp.net/web-forms Commented May 19, 2017 at 8:42
  • Did you mean, use HTML tag and CSS file in winform/WPF? Commented May 19, 2017 at 8:43
  • 1
    Embedd a WebBrowser, use it as interface, attach to DOM events and interact with it. Commented May 19, 2017 at 8:56
  • @John is webforms secure and have all of the features from WinForms? Commented May 19, 2017 at 9:13
  • @Ariwibawa Yes or some kind of Wrapper/API method that will allow it. Commented May 19, 2017 at 9:14

1 Answer 1

2

I'm the maintainer of NanUI project. NanUI is an open source component for .NET / .NET Core Windows Form Applications. It's base on Chromium Embedded Framework. So you can use HTML5, CSS3 and JavaScript to create desktop applications.

Preview

All resources can be embedded in Assembly so you don't need a webserver to host the webpages.

You can pull and try it.

https://github.com/NetDimension/NanUI

Sign up to request clarification or add additional context in comments.

2 Comments

I'm trying about two days to figure out how to use the NanUI library. How can I setup a very basic Application that uses html/css/javascript as embedded resources?
Sorry for my poor English, I can not explain how to do this clearly in English. There is an example video that will tell you how to use embedded files in assembly, but it is a Chinese version. You can follow the steps in this video without listening. m.bilibili.com/video/BV1Xz4y167FP

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.