Styling and Templating

  • Ashish Ghoda


Silverlight provides the capability to easily style elements of user interfaces and alter the appearance (separate from the behavior) of controls. Styling is similar in spirit to how CSS properties work: user interface elements can reuse fonts, colors, and sizes that are specified as a style by applying a specific style to a FrameworkElement. Templating, however, is limited to Control-based classes and is used to completely change how controls are rendered visually. This mechanism works because what the control does (its behavior) is separate from how it looks. These two capabilities provide a significant amount of user interface customization to designers and developers when working with Silverlight.


Common State Visual Appearance Control Template Visual Element Focus State 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Ashish Ghoda 2010

Authors and Affiliations

  • Ashish Ghoda

There are no affiliations available

Personalised recommendations