g.i.cs class keeps changing its base class back to its default
System.Windows.Controls.Page
After I’ve changed it to
System.Windows.Controls.UserControl
I need it to be a UserControl because the other partial class’ base class is a UserControl
After compiling I get the message
“…file.g.i.cs This file has been modified outside of the source
editor. Do you want to reload it?”
If I say no, I can compile, but after a while, it switches back again. If I choose yes, it instantly switches back.
Any ideas?
Oh, and no one else is working on the files 🙂
Ok, I didn’t find the solution, but I found out why it happens in the first place. When adding the Silver Light file, I chose ‘Silverlight Page’. I should have chosen ‘Silverlight User Control’. I guess once you choose one, you can’t turn it into the other… Hope this helps someone eventually lol.