Source code from Programming WPF 2nd Edition