Inspecting XAML properties on Live Visual Tree

Let's start by creating a new WPF project. Go to File | New | Project... and from the available project templates under Visual C# | Windows Classic Desktop, select the WPF App (.NET Framework) template. Give it a name and click OK to create the project.

This will create a blank project with a MainWindow.xaml page which will have a blank <Grid/> layout inside the <Window/> tag, as shown in the following screenshot. Run the application in debug mode to launch the Live Visual Tree explorer. If the tool window does not come up automatically, navigate to the Visual Studio 2017 menu Debug | Windows | Live Visual Tree:

When you run the app, it will have a blank window in the screen as we have not added ...

Get Mastering Visual Studio 2017 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.