- Styles can be used with any Silverlight Elements that is derived from Framework Element .
- By using Styles , u can modify the default values of properties of the control to which the style is applied .
- The Properties values in styles can be Overridden by the values that are set on the control itself when it is drawn in the artboard .
- Within a style u can only modify pre-existing properties of the Control.
- Using Styles u can only specify the default behavior of a control.
Templates
- Templates Used only those elements that inherit from the Control class in the System.Windows.Control namespace.
- By using Templates u can modify the structure of the Control to which the Template is applied.
- Templates Values can’t be overridden by the values that are set on the control itself when it is drawn on the artboard .But , using Template Binding the property’s value can set of a template according to the values of a properties of the control when it is drawn on the artboard.
- When u Modify with Template u can access to more parts of control then styles.
- By using Trigger u can specify the behavior of any new & existing parts in a Template.
No comments:
Post a Comment