Answer the question
In order to leave comments, you need to log in
WPF or Windows?
What is better to learn if you are new to C#? WPF or Windows Forms? And what is their difference anyway?
Answer the question
In order to leave comments, you need to log in
Better for what?
If the goal is to make applications that are pleasant to use, then with
wpf
you can do this faster than with WF - throw buttons on the form, if only it worked, then with WF it will be easier
Both are GUI (Graphical User Interface) development frameworks.
And these two choices, in principle, are not limited. There are others:
Avalonia
Qt
wxWidgets
Yes, there are others, some more, some less adapted to C#. In general, even on UnityEngine you can make a GUI (and what a one!). Also, a web interface can be made to the program.
Here it should be understood that the GUI is a shell. By itself, it should draw windows, buttons, text fields, lists, etc., but the rest should be done by a program written by the developer.
It is generally considered good practice to write in such a way that there is as little as possible a binding of program logic to a graphical shell. The program itself can generally be compiled into a class library, and then any interface can be docked to it.
If you are a beginner, then don't bother with interfaces too much. To begin with, learn the language itself, the command line is also suitable for learning. Don't think that your first program will be in such high demand that it needs a graph at all. interface. Yes, of course, to study the features of a particular graph. Libraries will have to, but that's later. First you need to master the language itself.
It's hard to say which is easier. WF is easier for me, but solely because it is the first (and at that time - the only thing that was generally available for C #), now the choice is richer.
There is the so-called "duckling syndrome", usually people praise what they saw and mastered first (so the duckling supposedly considers the first creature he sees to be his mother). That's why I say - you should not focus on the GUI, the language itself is more important.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question