WPFwiki, wpf, wiki, .net 3.0, windows presentation foundation, FAQ, free resources, solution, development, microsoft Home of the world's largest WPF FAQ
Edit

Category

ItemsControl

Edit

Question

How can I customize the way my ItemsControl displays each item in the collection I passed?

Edit

Answer

This is done with the help of a DataTemplate.

The ItemsControl class exposes an ItemTemplate and an ItemTemplateSelector property that allow setting the Data Template that will be used to display each individual item in the collection.

Refer to DataTemplate documentation for details

Edit

Related Links

DataTemplate: What is it?

All content is Copyright ©2007 Xceed Software Inc. unless otherwise indicated. See the Terms of Service. Contributors must read and agree to the Contribution Policy. WPFwiki is brought to you by Xceed, makers of the powerful yet free Xceed DataGrid for WPF.