Error after changing the name of the main window

I am using WPF for the first time and I get this error:

Cannot locate resource 'mainwindow.xaml'

This is because I changed the name. I skipped to change this some other code? I am not very good at this project, compared to the Windows Form that I used before. Which file launches the application? I was looking for one in the solution explorer. I think maybe there is a mistake?

+5
source share
2 answers

Change it in the StartupUritag attribute Applicationin App.xaml.

+6
source

After renaming the window project item:

  • Rename the initial URI in App.xaml to the appropriate one WindowName.xaml;
  • x:Class XAML , .
0

All Articles