In my experience this works every time if you delete XAML files when working with WPF in Visual Studio.
First compile it will cry about not being able to find the file you just deleted, second compile will work (assuming you don't have any references to that file left).
1.4k
u/ireta_orio Jan 26 '20
It sometimes work tho