Abstract
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.
Keywords
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.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2009 Ashish Ghoda and Jeff Scanlon
About this chapter
Cite this chapter
(2009). Styling and Templating. In: Accelerated Silverlight 3. Apress. https://doi.org/10.1007/978-1-4302-2430-3_8
Download citation
DOI: https://doi.org/10.1007/978-1-4302-2430-3_8
Publisher Name: Apress
Print ISBN: 978-1-4302-2429-7
Online ISBN: 978-1-4302-2430-3
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books