Xamarin.Forms.ListView.GroupHeaderTemplate Property
Gets or sets a Xamarin.Forms.DataTemplate for group headers.

Syntax

public DataTemplate GroupHeaderTemplate { get; set; }

See Also

ListView.ItemsSource
ListView.GroupDisplayBinding
ListView.IsGroupingEnabled

Value

The Xamarin.Forms.DataTemplate for group headers, or null.

Remarks

Use this property to define a template for a Xamarin.Forms.Cell that will be used as the header for groups in this Xamarin.Forms.ListView. The Xamarin.BindableObject.BindingContext will be the IEnumerable for each group.

GroupHeaderTemplate is mutually exclusive with ListView.GroupDisplayBinding. Setting this property will set ListView.GroupDisplayBinding to null.

Empty groups will still display a group header.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0