Prepare a WPF application