Back to Devexpress

NavBarGroup.CollapsedNavPaneItemsTemplateSelector Property

wpf-devexpress-dot-xpf-dot-navbar-dot-navbargroup-85b70c2e.md

latest2.5 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.NavBar

Declaration

csharp
public DataTemplateSelector CollapsedNavPaneItemsTemplateSelector { get; set; }
vb
Public Property CollapsedNavPaneItemsTemplateSelector As DataTemplateSelector

Property Value

TypeDescription
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

CollapsedNavPaneItems

CollapsedNavPaneItemsSource

CollapsedNavPaneItemsStyle

CollapsedNavPaneItemsTemplate

Templating View Elements

NavBarGroup Class

NavBarGroup Members

DevExpress.Xpf.NavBar Namespace