Dominique
Dominique

Reputation: 17493

Is it possible to customise Live Visual Tree in Visual Studio even more?

I'm working on a C# WPF application, based on some XAMLs. As I'm trying to do some modifications on the layout, I've decided to work with the Live Visual Tree.

At first, this is what I got:
Situation at the start

As you can imagine, this is rubbish: which Grid stands for what?

Now, after giving each Grid its x:Name, this is what I have: after entering "x:Name"

This is far more readable and proves that customising the Live Visual Tree is possible.
Now I would like to customise "a bit" further: I would like to display the RowDefinitions and ColumnDefinitions in the Live Visual Tree too.

Is this possible and how can I do this? I'm thinking about something like this:

<Grid x:Name="Grd_Headers">
  <Grid.RowDefinitions>
    <RowDefinition Height="Auto"><!-- flag_show_in_Live_Visual_Tree--></RowDefinition>

Edit: what about Blend?

As mentioned in the URL concerning Blend, I have observed that the "Blend"-related checkbox was checked in Visual Studio installer:

enter image description here

However, when opening a XAML file while designing, I don't see the corresponding image of the Tools panel: my "Toolbox" looks as follows:

enter image description here

... which looks like a regular toolbox.
When checking the menu "View", "Other windows", I don't see anything called "Blend" or something.

What do I need to do in order to see any "Blend"-related tools?

Even after having downloaded and installed Blend, it looks like a simple Visual Studio in a dark mode, but the typical Blend GUI is not present, as can be seen from the following screenshot:

enter image description here

Upvotes: 0

Views: 137

Answers (1)

Wenbin Geng
Wenbin Geng

Reputation: 3688

It seems that you have not opened the correct Blend for Visual Studio.

Please search for Blend for Visual Studio in the search bar of the taskbar first.

enter image description here

Then create wpf to see if it meets your requirements:

enter image description here

enter image description here

Upvotes: 1

Related Questions