I'm using WPF for the first time and I get an error like this:
Cannot locate resource 'mainwindow.xaml'
That is becuase I changed the name. Have I missed to change this is some other code? I'm not so familiar with this type of projekt, compared with Windows Form that I used before. Which file launch the application? I have been looking for one in the solution explorer. I guess it's perhaps there the error is?
Change it in StartupUri
attribute of Application
tag in App.xaml
also.
After renaming a window project item:
WindowName.xaml
;x:Class
attribute value in window XAML file, it must be match
class name in code behind.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With