All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Suggested Actions

  • 2 minutes to read

The new WPF XAML Designer includes a Suggested Actions menu that is similar to Smart Tags.

Suggested Actions give you access to common properties of a control selected within the new WPF XAML Designer.

Requirements

To use Suggested Actions, install Visual Studio 2019 Preview v16.8 or later.

.NET Core applications use the new WPF XAML Designer by default. For .NET Framework apps, enable the following option in Visual Studio:

Tools > Options > Preview Features > New WPF XAML Designer for .NET Framework (requires restart)

Use Suggested Actions

Select a control and click the "light bulb" to expand the Suggested Actions menu.

The Suggested Actions menu's title displays the selected control's class name. You can click this name to open a documentation article that describes the control.

The Suggested Actions menu includes three tabs:

  • General - contains the most important properties of the selected control.
  • Appearance - contains properties that allow you to change the selected control's appearance (for example, Background and Alignment).
  • Behaviors - allows you to add Behaviors and Services to the selected control.

The Suggested Actions menu for the Window elements allows you to convert the Window to ThemedWindow.

Limitations