Everything that can be done in XAML can also be done in code due to the fact that XAML is just a DSL for creating and setting up graphs of objects, in particular, in the WPF library ( System.Windows ). If you are building business applications, then very little of what WPF offers is not available at all in WinForms. The main difference is that WPF allows you to do much more easily and flexibly due to its more advanced object model.
I think WPF is definitely worth exploring, but if you want to do it without learning XAML, then I think you will probably find the grok more difficult.
It is also worth considering that many WPF developers write XAML manually (while their fellow developers will use Blend more often in the first instance), partly because of the need (the WPF developer before Visual Studio 2010 was not very good) and partly because the object model lends itself to shorter expressions in XAML than in C #. XAML itself is a fairly small language, but the object model that it uses to define it (the WPF object model) is huge - and that is where complexity arises.
If you have no good reason to stop using WinForms, then no. However, if you can cast aside your preconceptions about writing code in XML rather than in C #, then I think you may be wondering how this other approach to creating a user interface can clear your code.
Damian powder
source share