Answer the question
In order to leave comments, you need to log in
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
I don't recommend doing that.
In C#, the interface will always be faster)))
So is UI possible with html, css and js?
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.
> 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".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question