Styles, Templates, and UserControls

  • Andrew Troelsen


In the previous chapter you learned how to create a user interface via Expression Blend and the WPF and/or Silverlight control libraries. The point of this chapter is to explore a collection of interconnected topics that allows you to deeply customize how these controls render their final visual output. The first part of this chapter will examine the WPF and Silverlight style mechanism. As you may know, styles serve the same general purpose as a web-centric cascading style sheet, in that both techniques provide a way to ensure that all instances of a given control (a Button, a TextBox, etc.) share the same property settings (fonts, colors, sizes, and so forth).


Content Property Mouse Cursor States Panel Property Panel Button Control 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Andrew Troelsen 2011

Authors and Affiliations

  • Andrew Troelsen

There are no affiliations available

Personalised recommendations