Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Styles

Styles are a special type of dependency object. The content of a style is a list of setters. Setters provide a value for a property. What makes styles unique is that they can be defined once and then applied multiple times. They can implicitly affect any element of a given type and can be based on other styles to provide a hierarchy.

Style definitions are a key to success in Line of Business applications because they provide a decoupled way to describe the look and feel. The developer doesn’t have to worry about nuances such as font sizes and complex color gradients when they can be defined separately by styles. You’ll learn some advanced techniques to use with styles in later chapters. The property for style is defined on the FrameworkElement class and allows styles to be applied to any element that is a descendant of the framework element.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint