XAML is equivalent to a .resx file; it's a DSL for the UI processed at compile time.

To dynamically set the UI at runtime you will have to build the object graph for the UI in code just as you would for a WinForms app. Although they are different libraries, they still come down to objects representing UI controls which are kept in an ownership graph.

Unfortunately, the .NET framework does not seem to include a WPF design surface like it contains a Winforms Design surface, otherwise you could (relatively) easily write self-editing WPF applications.

Herbie