Is it possible to design a C # application using CSS

I better create a computer application in C # than a web page in ASP.net. But the power CSS has in the design of buttons, shapes, etc., really makes me love it.

I searched google if I can only use CSS in software, but there is no result yet. Is it possible? I know this is too overseas and a stupid question, but I really need an answer.

EDIT: I would like to mention that I am using Visual Studio Community 2015.

+4
source share
3 answers

Yes, you can. Use the WebBroswer class (find it in the toolbar) and use the HTML and CSS codes inside it, but keep in mind that after all the html and css lines put them in the corresponding property of the WebBrowser control. Also note that they will not work on the server side. Just plain html and css.


Tip:
Learn how to use WPF instead of HTML and CSS, for which there is great power for developing client applications.
+4
source

If you really love CSS and want to create a Desktop Application using CSS, you might need to look at Electron.

Electron - , GitHub. Visual Studio Atom Electron.

#, Typescript, #.

+3

Yes, I would recommend using CEFSharp , which is the .NET wrapper for the Chromium Embedded Framework instead of the webbrowser class. You can create such programs:

CEF inside Winforms

which is fully responsive and allows you to use javascript functions for C # and vice versa. Although not the most efficient way, it provides an excellent starting point for using web applications in a standalone method.

+2
source

Source: https://habr.com/ru/post/1653823/


All Articles