Recommended

Skip Navigation LinksHome / Tips / View Tip

Tip: How to find the styles and templates of a standard control?

+ Add to SilverlightShow Favorites
0 comments   /   posted by Denislav Savkov on Sep 18, 2008
(0 votes)
Categories: Styles and Templates

Changing the default style or template of a control from the standard library is the same as with any other control. Except to create your own style it is good to know the parts and the states that compose the standard style. Microsoft has released the full XAML of a number of controls along with description of their visual states and state groups - Control Styles and Templates. Additionally using the reflector you can extract the styles of some slightly different controls, we did that and uploaded the generic.xaml file for you. Lastly, in the Reflector you can see the states and parts of every control  listed on the first line of the page. See how to disassemble Silverlight assemblies here.

 

ListBox has only one visual part - ScrollViewer.

 

Here you see two of the six Button visual states.

 That's it!

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 2 and 5 and type the answer here:

Help us make SilverlightShow even better and win a free t-shirt. Whether you'd like to suggest a change in the structure, content organization, section layout or any other aspect of SilverlightShow appearance - we'd love to hear from you! Need a material (article, tutorial, or other) on a specific topic? Let us know and SilverlightShow content authors will work to have that prepared for you. (hide this)