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

NavBarGroup.CollapsedNavPaneItemsTemplateSelector Property

Gets or sets the DataTemplateSelector object that provides a way to choose a DataTemplate used to render items in the collapsed Navigation Pane. This is a dependency property.

Namespace: DevExpress.Xpf.NavBar

Assembly: DevExpress.Xpf.NavBar.v18.2.dll

Declaration

public DataTemplateSelector CollapsedNavPaneItemsTemplateSelector { get; set; }

Property Value

Type Description
DataTemplateSelector

A DataTemplateSelector object that provides a way to choose a DataTemplate used to render items in the collapsed Navigation Pane.

Remarks

The CollapsedNavPaneItemsTemplateSelector property supports the MVVM design pattern. You can declare several data templates and apply one of them to render items in the collapsed Navigation Pane based on your own logic. To implement this approach, first create the System.Windows.Controls.DataTemplateSelector descendant and override the DataTemplateSelector.SelectTemplate method to realize the template selection logic. Then, assign an instance of this object to the CollapsedNavPaneItemsTemplateSelector property and declare your data templates. The data templates can be defined in the window resources dictionary.

See Also