Instead of a *.cs code behind or beside I\'d like to have a *.js file. I\'m developing a MVC application an have no need for a code beside because I have controllers, but i
If you need to add code-behind for some file there is a workaround. For instance you want to make Test.xaml.cs a child of Test.xaml. Complete the following steps:
Exclude both Test.xaml and Test.xaml.cs from project, save project.
Unload project.
Reload project.
Click "Show hidden files" in File Explorer pane.
File Test.xaml.cs will be displayed as child of Test.xaml.
Add files back to project, save project.
That's it. Now Test.xaml.cs is dependent on Test.xaml.