How can I connect xaml and xaml.cs files
.net, c#, wpf, xaml
Solution
This is simple, try to add in project existing items and select the XAML (not .cs, etc.) files in list of formats. In VS2010 thats helps.
Problem
I had a VB projected and converted it to C# using online conversion tools. Now the problem is `xaml` and `xaml.cs` file do not connect to each other, that is they don't recognize their dependencies (Red area in Fig). Actually it should appear like Window1 Files (Green Area in the image.) How can I achieve this. I am trying my hands on WPF so may be a layman sort of question.