Sdílet prostřednictvím


GroupStyle.HeaderTemplateSelector Property

Definition

Gets or sets a reference to a custom DataTemplateSelector logic class. The DataTemplateSelector returns different DataTemplate values to use for the header area of group item content.

DataTemplateSelector HeaderTemplateSelector();

void HeaderTemplateSelector(DataTemplateSelector value);
public DataTemplateSelector HeaderTemplateSelector { get; set; }
var dataTemplateSelector = groupStyle.headerTemplateSelector;
groupStyle.headerTemplateSelector = dataTemplateSelector;
Public Property HeaderTemplateSelector As DataTemplateSelector
<GroupStyle HeaderTemplateSelector="dataTemplateSelectorReference" />

Property Value

An object that derives from DataTemplateSelector. The default is null.

Applies to