WPF Styles

Before starting WPF styles lets check some of the properties and classes used in styling.
In WPF everything is visible because it is painted with Brush.A brush is used to describe background of a button, the foreground of text(font color), and the filling color of the shape.

Brushes Tutorial


BasedOn:Gets or sets a defined style that is the basis of the current style.
Dispatcher:Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)
IsSealed:Gets a value that indicates whether the style is read-only and cannot be changed.
Resources:Gets or sets the collection of resources that can be used within the scope of this style.
Setters:Gets a collection of Setter and EventSetter objects.
TargetType: Gets or sets the type for which this style is intended.
Triggers: Gets a collection of TriggerBase objects that apply property values based on specified conditions.





References: http://msdn.microsoft.com/en-us/library/system.windows.style.aspx

0 comments:

Post a Comment