How can I connect xaml and xaml.cs files

前端 未结 11 1903
既然无缘
既然无缘 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 06:20

    Easiest Way!!!

    I came across the same. I got the way out. Here is how to get the .xaml.cs nested under the .xaml in Solution Explorer:

    1. In Windows File Explorer (outside of Visual Studio), open the folder where the required files are.
    2. Select both files (.xaml and .xaml.cs) together.
    3. Drag it onto your project name in the Solution Explorer.
    4. Its done! :)

提交回复
热议问题