Back to Devexpress

NavBarGroup.PeekFormTemplateSelector Property

wpf-devexpress-dot-xpf-dot-navbar-dot-navbargroup-89baa197.md

latest2.1 KB
Original Source

NavBarGroup.PeekFormTemplateSelector Property

Gets or sets the DataTemplateSelector descendant that provides a way to choose a DataTemplate used to render the PeekForm for the current group. 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 PeekFormTemplateSelector { get; set; }
vb
Public Property PeekFormTemplateSelector As DataTemplateSelector

Property Value

TypeDescription
DataTemplateSelector

A DataTemplateSelector descendant that provides a way to choose a DataTemplate used to render the PeekForm for the current group.

|

Remarks

The PeekFormTemplateSelector property supports the MVVM design pattern. You can declare several data templates and apply one of them to render the PeekForm 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 PeekFormTemplateSelector property and declare your data templates. The data templates can be defined in the window resources dictionary.

See Also

PeekFormTemplate

Templating View Elements

NavBarGroup Class

NavBarGroup Members

DevExpress.Xpf.NavBar Namespace