changed wp to wpf