Export (0) Print
Expand All

Reset a property to its default value

Resetting a property to its default value is useful if you want to use the default value of the object type. For example, if you convert a canvas panel to a grid panel, you might want to reset the Layout properties to the defaults that are used by a grid. Using default values reduces the size of your XAML files because default properties do not have to be specified as XAML attributes.

To reset a property

  1. In the Properties panel, locate the property that you want to reset.

  2. Next to the property, click Advanced options Ee341394.12e06962-5d8a-480d-a837-e06b84c545bb(en-us,Expression.40).png. The color of the marker depends on what the property was set to. For example, a yellow marker Ee341394.e3343378-f63e-4d8f-9847-97c1a58aadc5(en-us,Expression.40).png means that the property was data bound.

  3. On the shortcut menu that appears, click Reset.

    The value field is updated to show you the default property value.

See also

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.
Show:
© 2015 Microsoft