I am currently reading an WPF tutorial and i don’t fully understand the following benefit being described. Can someone explain me in more detail what is being said?
Benefit of XAML
Representation of any public .NET Framework class in XAML, if the class exposes a
default constructor. This feature is possible because XAML is an XML-based
serialization format for .NET Framework objects.
The benefit is that you can create .NET object graphs in a declarative way (mainly for UIs) and you can extend it:
So it is easier to declare UIs (than from code), easier to separate the UI from business logic and easier to work together with other teams.
It is a much cleaner solution than creating UI elements from C# code for example.