Skip to main content
Bar

Gallery.GroupTemplateSelector Property

Gets or sets an object that chooses a template used to visualize objects stored as elements in the Gallery.GroupsSource collection.

This is a dependency property.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v24.1.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public DataTemplateSelector GroupTemplateSelector { get; set; }

Property Value

Type Description
DataTemplateSelector

A System.Windows.Controls.DataTemplateSelector descendant that applies a template based on custom logic.

Remarks

To implement custom logic for choosing a template, create a System.Windows.Controls.DataTemplateSelector descendant, and override the System.Windows.Controls.DataTemplateSelector.SelectTemplate method. This method returns a data template for a specific object.

The GroupTemplateSelector property supports the MVVM design pattern. See MVVM Support to learn more.

See Also