Skip to main content

MenuFlyout.ItemTemplateSelector Property

Gets or sets an object that chooses a template used to visualize MenuFlyoutItems within this MenuFlyout. This is a dependency property.

Namespace: DevExpress.Xpf.WindowsUI

Assembly: DevExpress.Xpf.Controls.v21.2.dll


public DataTemplateSelector ItemTemplateSelector { get; set; }

Property Value

Type Description

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


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 item.

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

See Also