Content Index Search
 

Restore the default style

You can use the style of a control in Microsoft® Expression Blend™ to specify properties and triggers that will be used as defaults by the control to which the style is applied. The properties (such as the background brush color) will affect the control's appearance, and the triggers will affect how the control responds to property changes and events. For example, when the user moves their mouse over the control, the IsMouseOver property changes from False to True and the MouseOver event fires. You can create a style for a button that causes the background color of the button to change when the mouse pointer moves over the button.

At any time, you can restore the default style of a control that is drawn on the artboard. The default style uses a dynamic theme that changes the appearance of your control depending on whether your application runs on a Microsoft Windows XP computer or on a Windows Vista computer. For more information, see Themes and simple styles.

Tip To restore the default style for a control, you must have applied a different style to it previously. Restoring the default style essentially breaks the link the control had to a style resource.
  1. On the artboard or under Objects and Timeline, click an object that has a style resource applied to it.
  2. In the Properties panel, locate the Style property, click the property value or the Advanced property options button, and then click Reset on the shortcut menu. Notice that the green outline disappears from around the property value.