Live Chat Icon For mobile
Live Chat Icon

How do I build an ItemsControl ControlTemplate ?

Platform: WPF| Category: ControlTemplates

The important key point when building an ItemsControl or any of it’s derived classes (listbox, combobox, listview etc.), is to make sure to include an ‘ItemsPresenter’ object somewhere in the ControlTemplate. It’s the place holder for the panel to display the ItemsControl items. An alternative is to include a panel into the ControlTemplate with the property ‘IsItemsHost’ set to ’true’.

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.