I am attempting to open a .xaml.cs file in Visual Studio 2012, but double-clicking the file does nothing and right-clicking and selecting Open does nothing.
If I attempt to open any other .xaml.cs file, it works fine – so it is isolated to a single file.
For example…
- ImportUserControl.xaml – Opens fine
- ImportUserControl.xaml.cs – Won’t open
- ExportUserControl.xaml – Opens fine
- ExportUserControl.xaml.cs – Won’t open
I have also tried opening the .xaml file in Visual Studio and selecting View Code too.
What could cause this and how do I resolve it?
The resolution to this isn’t great, but I guess it is obvious.
I closed Visual Studio and then re-opened it. This cleared the problem up.