Skip to main content
A newer version of this page is available. .

RibbonControl.ToolbarItemTemplateSelector Property

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

This is a dependency property.

Namespace: DevExpress.Xpf.Ribbon

Assembly: DevExpress.Xpf.Ribbon.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Ribbon, DevExpress.Wpf.Navigation

Declaration

public DataTemplateSelector ToolbarItemTemplateSelector { 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, you should 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 ToolbarItemTemplateSelector property supports the MVVM design pattern. See MVVM Support to learn more.

See Also