Back to Devexpress

Remove Redundant Type Qualifier (XAML)

coderushforroslyn-401440-refactoring-assistance-remove-redundant-type-qualifier-xaml.md

latest690 B
Original Source

Remove Redundant Type Qualifier (XAML)

  • Aug 19, 2021

Purpose

Removes a redundant type qualifier when the target type is defined, for example, on a style setter. This can improve code readability.

Availability

Available when the cursor is in a redundant type qualifier.

How to Use

  1. Place the caret in a property redundant type qualifier (for example, “CheckBox.Template”).

  2. Press the Ctrl + . or Ctrl + ~ shortcut to invoke the Code Actions menu.

  3. Select Remove Redundant Type Qualifier from the menu.

After execution, the Refactoring removes the redundant type qualifier.