Organizing files
netnav wrote:
When I create a new Avalon Application VS will create a Window1.xaml file and a Window1.xaml.cs file. The Windows1.xaml.cs file is one level under the Window1.xaml file. The Window1.xaml file also has a plus sign next to it so that you can access the Window1.xaml.cs file. When I add an additional window to the same application VS will create a Window2.xaml and a Window2.xaml.cs. These two files are positioned at the same level. How do I create new windows so that the cs file is positioned one level down. Things get pretty cluttered without being able to do this.
You should be able to create a folder in your project. Once you create the XAML file, you should be able to expand the file to show the .cs file, and then move that CS file to the directory you created.
However, while the project manager should have no problems compiling your code correctly, the designer might very well complain in some way if you do this, so I would suggest making a backup of your project before you try this.
Hope this helps.
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
netnav wrote:
When I create a new Avalon Application VS will create a Window1.xaml file and a Window1.xaml.cs file. The Windows1.xaml.cs file is one level under the Window1.xaml file. The Window1.xaml file also has a plus sign next to it so that you can access the Window1.xaml.cs file. When I add an additional window to the same application VS will create a Window2.xaml and a Window2.xaml.cs. These two files are positioned at the same level. How do I create new windows so that the cs file is positioned one level down. Things get pretty cluttered without being able to do this.
This sounds like a bug to me. If the original xaml.cs file is hidden under the xaml file, this should be consistent for all new windows. I would report this issue in the MSDN Feedback Center.
Unfortunately, I do not know how to manually force this behavior.