Start with the Windows form approach and modify it for WPF.