Skip to main content
A newer version of this page is available. .
All docs
V22.1

AccordionControl.QueryItemTemplate Event

Allows you to assign HTML-CSS templates to individual elements.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v22.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[Browsable(false)]
[DXCategory("Events")]
[EditorBrowsable(EditorBrowsableState.Never)]
public event QueryAccordionItemTemplateEventHandler QueryItemTemplate

Event Data

The QueryItemTemplate event's data class is DevExpress.XtraBars.Navigation.QueryAccordionItemTemplateEventArgs.

Remarks

The following properties specify default HTML-CSS templates used to render AccordionControl elements:

Subscribe to the QueryItemTemplate event to override the default templates for individual elements. The QueryItemTemplate event fires repeatedly for each AccordionControl element.

You can use the AccordionControlHtmlTemplates.Templates property to create multiple HTML-CSS templates beforehand. When you handle the QueryItemTemplate event, obtain a required template from the Templates collection, and assign it to the event’s e.Template parameter.

See Also