Does Visual Studio (2022) have a "XAML design debug output" window?

38 Views Asked by At

I have two xaml files:

  • one (present in solution1) I can see in the design view.
  • the other one (present in solution2) I can't see in the design view.

There's nothing wrong with the second xaml: I can see it when I run the application. But I would like to see it in design view (if ever I need to perform a modification, I'll see what I'm doing).

In order to learn, I decided to open the one in solution1 in design view and see in the "Output" window how everything should behave, and based on that, I'd learn what to do.

That failed, because, when opening a xaml file in design view, nothing is added to Visual Studio's "Output" window (nothing in the "Debug" chapter, nothing either in "Build", "Build order" or the other chapters).

For your information, my xaml-related settings look as follows:

enter image description here

Where can I see what happens in the design view of Visual Studio (2022) while opening a xaml file?

This is how the second xaml looks like, together with the output window (as you see, there is absolutely nothing, so I'm wondering what I should do in order to see something):

enter image description here

2

There are 2 best solutions below

1
Bowman Zhu-MSFT On

Take a look at these settings:

enter image description here

enter image description here

0
Dominique On

In the meantime I've found another way to solve my problem: my xaml consisted out of UserControls, located within a Grid, located within ..., located within a zoomControl, and that overall embedding zoomControl was messing everything up.

I've found this by replacing all my UserControls by Labels, but still the XAML was not shown. Only with the zoomControl out of the picture, I started seeing things, I could even see all UserControls.