GroupStyle.HeaderTemplateSelector GroupStyle.HeaderTemplateSelector GroupStyle.HeaderTemplateSelector 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.

public : DataTemplateSelector HeaderTemplateSelector { get; set; }
DataTemplateSelector HeaderTemplateSelector();

void HeaderTemplateSelector(DataTemplateSelector headertemplateselector);
public DataTemplateSelector HeaderTemplateSelector { get; set; }
Public ReadWrite Property HeaderTemplateSelector As DataTemplateSelector
<GroupStyle HeaderTemplateSelector="dataTemplateSelectorReference" />

Property Value

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

Remarks

For example XAML that references a custom DataTemplateSelector as the HeaderTemplateSelector value, and example code that shows the overrides for HeaderTemplateSelector methods, see How to group items in a list or grid.