Skip to main content

Remove Potentially Redundant Assignment

In This Article

Removes the XAML attribute if it is initialized to the default value.

#Availability

Available from the context menu or via shortcuts:

  • when the cursor is anywhere in an XAML attribute initialized to the default value.

#Example

<StackPanel Orientation="Vertical" Grid.Row="1">
. . .
</StackPanel>

Result:

<StackPanel Grid.Row="1">
. . .
</StackPanel>
See Also