Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AccordionItem.SearchTag Attached Property

Gets or sets a string that is used by the AccordionControl while filtering. This is a dependency property.

Namespace: DevExpress.Xpf.Accordion

Assembly: DevExpress.Xpf.Accordion.v24.2.dll

NuGet Package: DevExpress.Wpf.Accordion

#Declaration

#Returns

Type Description
String

A String value.

#Remarks

Accordion items are filtered based on their AccordionItem.Header property value by default.

You can specify a search tag for an accordion item using the SearchTag property. An accordion item whose search tag meets the filter criteria is included in the search result regardless of its AccordionItem.Header property value.

The following code sample demonstrates a data editor explicitly wrapped in an AccordionItem object that has a specified search tag:

<dxa:AccordionControl ShowSearchControl="True">
   <!-- -->
   <dxa:AccordionItem SearchTag="edit">
      <dxa:AccordionItem.Header>
         <dxe:TrackBarEdit/>
      </dxa:AccordionItem.Header>
   </dxa:AccordionItem>
</dxa:AccordionControl>

The image below shows the result:

AccordionSearchTag

Note

Only accordion items defined explicitly (not generated from a data source) support search tags.

Refer to the Searching topic to learn more.

See Also