WPFwiki, wpf, wiki, .net 3.0, windows presentation foundation, FAQ, free resources, solution, development, microsoft Home of the world's largest WPF FAQ
Edit

Category

Styles and Templates

Edit

Question

What are Styles?

Edit

Answer

A Style is a group of Setter and Trigger actions that affect properties of the styled object.

A Setter is an action that sets a specified property to the specifed value. A Style possess a collection of Setter actions which are automatically applied (called Setters).

A Trigger is an action which, as its name indicates, is triggerred by a particular condition. Depending on the Trigger type, a Trigger can contain Setters or Storyboards. A Style possesses a collection of Trigger actions, rightfully called Triggers.

All content is Copyright ©2007 Xceed Software Inc. unless otherwise indicated. See the Terms of Service. Contributors must read and agree to the Contribution Policy. WPFwiki is brought to you by Xceed, makers of the powerful yet free Xceed DataGrid for WPF.