Upgrading a WinForms app to WPF

后端 未结 4 1471
面向向阳花
面向向阳花 2020-12-03 03:34

I have a side project that I wrote a few years ago in WinForms. To better help me learn WPF, I would like to rewrite it in WPF. Ideally, I would like to just modify the curr

4条回答
  •  鱼传尺愫
    2020-12-03 04:06

    Open project manifest file (one with the .csproj extension) and modify PropertyGroup node (the one without Condition element) as below:

      
         
             {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
         
      
    

    After this modification restart VS. Now you can add WPF window or other WPF elements. You may also have to add references System.Xaml, PresentationCore and PresentationFramework.

提交回复
热议问题