An improved system and method for styling content in a graphical user
interface control is provided. An application may define a user interface
control having a data object of any type of singular content, including
another user interface control. An application may include style
declarations that may associate a style resource with the user interface
control and a style resource may be dynamically selected for presenting
the data object of the user interface control. The style resources may
define property values that may be selectively applied to specify a
visual representation for the user interface control and data object,
such as a visual subtree. A visual representation of the user interface
control with the data object may be generated and then a display
representation may be rendered for presentation on a user interface
display.