A
A
Alex2018-10-03 17:10:50
.NET
Alex, 2018-10-03 17:10:50

How to enable XAML Designer Window display in Visual Studio 2017?

How to enable XAML Designer Window display in Visual Studio 2017?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
#
#, 2018-10-03
@cocaine4ik

create a WPF or UWP app and it opens fine by itself. otherwise it is not needed.
all designers in the studio (including WinForms) process layout files in conjunction with the code (although forms have code, only generated according to the designer's rules), therefore, designers are not available outside the project
if you have WPF or UWP - specify the problem

A
Alexey Pavlov, 2018-10-04
@lexxpavlov

Judging by the picture, your studio separated xaml and xaml.cs, and did not understand them as a common entity. And now the xaml is showing as a plain text file. Perhaps the studio did not understand what type of template this project is (maybe the project is not newly created, but connected to an existing one?).
Create a new project in the same solution with the type WpfApplication and try the designer in it. Compare the csproj files between your defective project and the newly created project.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question