wpf-devexpress-dot-xpf-dot-docking-dot-layoutgroup-f53428f4.md
Gets or sets a DataTemplateSelector object that provides a way to choose a DataTemplate to render items stored in the LayoutGroup.ItemsSource collection.
Namespace : DevExpress.Xpf.Docking
Assembly : DevExpress.Xpf.Docking.v25.2.dll
NuGet Package : DevExpress.Wpf.Docking
public DataTemplateSelector ItemTemplateSelector { get; set; }
Public Property ItemTemplateSelector As DataTemplateSelector
| Type | Description |
|---|---|
| DataTemplateSelector |
A DataTemplateSelector object that provides a way to choose a DataTemplate to render items stored in the LayoutGroup.ItemsSource collection.
|
A DataTemplate allows you to specify the visualization for LayoutGroup items stored in the LayoutGroup.ItemsSource collection. Using a DataTemplateSelector you can apply your own logic to choose a DataTemplate. To implement this functionality, define a class derived from a DataTemplateSelector , override the SelectTemplate method and assign an instance of this class to the ItemTemplateSelector property.
If no DataTemplateSelector object is assigned to the ItemTemplateSelector property, a DataTemplate assigned to the LayoutGroup.ItemTemplate property will be used. If the DataTemplateSelector returns null no DataTemplate will be used.
To learn more, see Choosing Templates Based on Custom Logic.
See Also
Choosing Templates Based on Custom Logic