I'm not quite sure what you are asking because XAML is just a markup language.
If you take something like
<Button Name="MyButton" Content="Test" />
you really say
Button b = new Button(); b.Name = "MyButton"; b.Content = "Test";
I don’t think there is a need to create a tutorial on how to make WPF controls using code, because the markup language does almost the same thing, and in most cases it is very easy to convert what you see into the markup language for the code .
And if you really need examples of how to create a specific control using code, you can usually find many code examples through Google.
source share