Converted TestApp to WPF app