WPF is a GUI framework that is successor of Winform. These two technologies have very little in common. Winform is based on imperative architecture where all GUI components have to be placed by coding, this was greatly added by Visual studio designer. WPF allows the same capabilities as Winform but it is not the way it is meant to be used.
Microsoft develop for WPF xml derived language called XAML (read [zemel]). XAML allows to separate development of GUI and business logic of a program. XAML can fully describe GUI layout, appearance, and even functionality. Everything that is possible to accomplish with XAML is also possible by code. In fact XAML is translated to the code by WPF types.
XAML
It is possible to say that philosophy behind XAML and HTML is similar.
- both are hierarchical structure based on XML
- both use styles (in different)
- both have code behind (javascript + css vs. c# or vb )
- many properties (i.e. styles) are inherited by child elements from a parent element