The XAML part of a WPF application is vaguely a replacement of the WinForm.Designer.cs file in WinForms.
The WPF model has a better design for the UI and individual controls, fixing a lot of the short-comings of WinForms and guides you to (hopefully) a better Seperation of Concern design.