Xaml designer for Visual Studio 2017 is not available

Using Visual Studio Professional 2017 (15.2 26430.16 release), when I open the xaml file for the desktop UI that I developed, I can no longer see the xaml constructor (I only see the xaml source code). This is new behavior and may be due to the fact that I have a system cleanup, so maybe I uninstalled the SDK that I need or something?

Are there any Visual Studio error logs that I can check for warnings, etc.

XAML Editor

+3


source to share


4 answers


In the Visual Studio 2017 installer, I selected all SDKs and installed the missing ones. This in itself did not fix the problem, but a subsequent "repair" from the Visual Studio 2017 installer (accessible from the "hamburger" dropdown).



Sometimes adding or removing the SDK from the installer will enable the Enable XAML Designer checkbox under Tools → Options → XAML Designer → General (or it may have been a restore step that turned it back on), so make sure that it is verified.

+4


source


To be honest, your situation was different from mine. In my situation it was causing it due to Resharper. Maybe it might be helpful for someone else. What to do is check Settings> Enviroment> Performance Guide> Disable XAML Designer .



It should be "Ignore" or "Show in status bar" . Otherwise, it always disables the XAML designer.

+6


source


I couldn't get the constructor to work, but I found an alternative solution posted here posted by @DamianSuess

Use the View menu > Other Windows> Xamarin.Forms Previewer in Visual Studio to open the preview window. Use Window> Create Vertical Tab Group Menu to arrange it side by side.

form-not-show-in-visual studio

+4


source


make sure you have installed Windows 10 SDK correctly, there are 3-4 SDK versions, the error you are talking about may also be due to incompatible sdk, also reinstall the sdk associated with your application, close every process associated with Visual studio running in the background when reinstalling SDK.

Can you share a screenshot of the designer xaml page?

+1


source







All Articles