Visual Studio 2017 xaml designer not available

Viewed 23981

Using Visual Studio Professional 2017 (Release 15.2 26430.16), when I open a xaml file for a desktop UI that I have developed, I can no longer see the xaml designer (I only see the raw xaml code). This is new behaviour and may be due to me having a system clean-out, so maybe I removed an SDK that I need or something like that?

Are there any Visual Studio error logs I can check for warnings etc?

XAML Editor

7 Answers

Frankly, your situation is different than mine. In my situation, it was because of Resharper. Maybe this may useful for someone else. What to do is checking Resharper Options > Enviroment > Performance Guide > Disable XAML Designer.

It must be set to "Ignore" or "Show in Status Bar". Otherwise, it will always disable XAML Designer.

Make sure XAML Designer is enabled.

Tools -> Options -> XAML Designer -> General -> Enable XAML Designer

I know this issue is tagged as WPF but I had a similar issue for Xamarin Forms.

What solved this issue for me:

  1. Right Click the xaml file
  2. Select "Open With..."
  3. Select Xamarin.Forms Previewer List item
  4. Click OK
  5. Optionally, you can set the Xamarin.Forms Previewer as the default for xaml files

I had the same, I found that opening the XAML in VS community did not work. However, if I choose file -> open -> project/solution and open the corresponding sln file, it works.

Related