@ManipUni: if you're willing to get really into WPF and generating controls in code, you could check out Charles Petzold's WPF book, he doesn't even introduce XAML at all until halfway through