S
S
sedoyky4er2016-01-08 19:32:09
css
sedoyky4er, 2016-01-08 19:32:09

UI and C# to html?

Good day, toasters! I have a question for you. Please share your opinion, I want to "cut down" a great interface for a desktop application written in C#. Tell me what can be used? So is UI possible with html, css and js? Rumor has it that WPF is dying and the sense of its use is coming to naught. By "great" design, I mean that the menus will move in, etc. All the same, I would like to hear your opinion in the direction of html. And so I will listen to everything) Senkyu in advance)

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexey Lebedev, 2016-01-08
@swanrnd

I don't recommend doing that.
In C#, the interface will always be faster)))

S
Stanislav Makarov, 2016-01-09
@Nipheris

So is UI possible with html, css and js?

Possible: Atom, VS Code and other applications on Electron (not only them, of course, this is just an example).
Don't jump to superficial conclusions. WPF is not some old grandfather who, when he dies, can do little to help his family. If a technology is just not developing as actively, this does not mean that it is, by definition, in the tail of any other.
Everyone who uses HTML for the desktop interface is the one who wants a) cross-platform; b) make your software hackable, for example, so that you can write all sorts of plugins in js, and thereby please your client developers. Well, and also c) those who, apart from the html + js stack, do not know anything, but also want a desktop (“we are people too”).

P
Peter, 2016-01-08
@petermzg

WPF - is not going to die yet and new applications using it are constantly being released.
Using html for a desktop application is also not an option, as you will run into the limitations of the built-in View control.

V
VZVZ, 2016-01-11
@VZVZ

> So is UI possible with html, css and js?
Theoretically, it is possible.
Practically - for the desktop there is nothing higher level than browser engines (which are very much missing, so you have to do a lot yourself), here is an overview of several engines:
www.codeproject.com/Tips/825526/Csharp-WebBrowser-...
More one serious minus - heaviness (several tens of megabytes will weigh the engine).
True, you can still look at HTMLayout / Scite, I didn’t see them much, from the advantages - light weight, I will need to look at them, but apparently there are no sane wrappers for .NET for them, which is bad.
Mobile phones have PhoneGap and React Native (fortunately, Android 4.x already includes a normal browser engine out of the box, and not the same as IE - WebBrowser on Windows), but they are raw, not really documented, little known.
Rather, this is not for a "great" interface, but for a quickly created interface, when there are developments in HTML + CSS + JS and you need to build a GUI in a mobile application on them. And besides these HTML + CSS + JS, nothing else is planned in the application.
Let's say there is a certain site, and you need to file a mobile client for it (like for VK, Facebook, etc.) Since the site, thank God, has a slender RESTful API, it's easier not to write a native GUI, but to take the same web -face on HTML + CSS + JS, stick it to PhoneGap and, with the help of some mother, bring it all together.
In Atom and VS Code, perhaps it was partly because the algorithms that had auto-completion, syntax highlighting for HTML, CSS, JS (and other basic features of any IDE) - those algorithms were only in JS ( or ready-made controls for this were on HTML+CSS+JS). And since - once again - this is the basis of any IDE, there is nothing surprising.
Well, yes, VS Code and Atom are mainly designed for Web developers, among whom there are both Linux and Mac users, and quite a few, therefore, in this case, cross-platform makes at least some sense - which in other cases does not give anything but difficulty development and decline in its quality.
> Rumor has it that WPF is dying
Remember once and for all - no tool just dies.
Steam locomotives will not disappear until diesel locomotives and electric locomotives appear.
Where is the alternative for WPF?
MS filed a new Windows Universal Apps platform (formerly Metro), and is pushing it hard to the masses, calling these applications "Windows Apps", clearly hinting that supposedly these are full-fledged applications for Windows.
But shit won't be sweet just because it's wrapped in a candy wrapper. WUP is still raw UG, and in the future it will not become sweet - frames in MS are no longer the same for writing good, flexible, convenient frameworks without redundancy in all its 50 shades.
WPF and WinPhone were already underwhelming - and the newer WUP is even worse.
Well, yes, I note that WUP is far from fundamentally new, and is largely based on the same WPF (therefore, it is not so difficult to switch from one to another). WUP is the same "not WPF", like Spartan - "not IE", and about the same as Bolgenos - not "Ubuntu".

A
Ai Lab, 2016-01-10
@vpuhoff

If you want a web interface, but under the hood of C #, make a website and do back in C # as a service. If you want to run your site as an application, anyone can do it themselves using Chrome

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question