The changes from Windows application form to wpf