Recommended

Skip Navigation LinksHome / News / View News

Changing Data-Templates at run-time from the VM

+ Add to SilverlightShow Favorites
0 comments   /   posted by Phil Middlemiss on Apr 13, 2010
(0 votes)
Phil Middlemiss describes a technique to use multiple data templates inside an ItemsControl, DataGrid or other controls that show lists of items.

For example, I may have a collection of company staff members to display in a single ListBox, but the managerial staff need to have extra information displayed (they always do!), and each level is styled slightly differently like this for example:
Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 3 and 4 and type the answer here:

Help us make SilverlightShow even better. 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 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)