Skip to main content

Default Value Can Be Assigned

In This Article

Highlights XAML attributes initialized to default values.

#Fix

In most cases, the highlighted attribute can be removed.

#Purpose

Highlights XAML attributes that can be removed to improve code readability.

#Example

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

Fix:

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