Some code snippets in which I was messing about with WPF templates