How can I connect xaml and xaml.cs files

前端 未结 11 1921
既然无缘
既然无缘 2020-12-14 05:27

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, t

11条回答
  •  青春惊慌失措
    2020-12-14 05:58

    If you cannot get the IDE to do it (Papa John's post), then you can do it by editing the project file.

    That information is in the .csproj file (which is an XML file -- you can open it in a text editor, or by right-clicking on it, choosing "unload", and then opening it -- choose reload to load it up as a project again).

    Here is the information to look for, you would need to add the "DependentUpon" tag.

    
      TheFile.xaml
    
    

提交回复
热议问题