Xaml UI Designer is inactive for wpf projects in .net core 3.0

夙愿已清 提交于 2020-01-11 09:19:13

问题


I have updated Visual Studio 2019 to version 16.3 which can support .Net Core 3 stable version.

After creating the first WPF app supported by .Net Core 3, the designer is inactive while the XAML designer is enabled in Tools=>Option=>XAML Designer.

How is it possible to activate the UI Designer in Visual Studio 16.3?

An image describing the problem visually has been attached to the question.


回答1:


Try “Tools” > “Options” > “Environment” > “Preview Features” and check the option “Use previews of the .NET SDK”. Then restart Visual Studio. (https://developercommunity.visualstudio.com/content/problem/745513/xaml-designer-does-not-load-in-visual-studio-2019.html)




回答2:


If the above options do not work, look under Tools/Options/XAML Designer, check Enable XAML Designer. I could not get that setting to save until I started VS as admin, then it finally saved.

However, for me, it still doesn't work. But it seems to have something to do with this setting having issues. Odd thing is, on another system I use, it works fine.



来源:https://stackoverflow.com/questions/58077297/xaml-ui-designer-is-inactive-for-wpf-projects-in-net-core-3-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!