Deleted app.xaml and code behind. Converted wpf project to classs library.