Instead of excluding it, by mistake, I deleted the .cs code behind file for an Xaml file. Now, I don’t know how to add the code behind.
This Window is empty with no UI controls on it. “View Code” is disabled and I can’t see the Events (lightning bolt icon) anywhere for this xaml.
Please help.
As far as I know without Version Control there is no way to revert back if the project has been saved. You should look into putting your code on Version Control.
At this point I would consider recreating your xaml file, copying your old code in, then deleting your events in XAML and recreating them, once you recreate them it will reproduce the code behind.