AutoSuggestEdit.AllowPopupTextHighlighting Property
Gets or sets whether the editor highlights the search results in its dropdown text according to the PopupHighlightedTextCriteria criteria. This is a dependency property.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v24.1.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Property Value
Type | Description |
---|---|
Boolean | true if the search text is highlighted; otherwise, false. |
Remarks
Set the AllowPopupTextHighlighting property to true to make control highlight the search text in a list of suggestions.
To set the search criteria (any of the HighlightedTextCriteria enumeration values), use the PopupHighlightedTextCriteria property.
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
<dxe:AutoSuggestEdit
AllowPopupTextHighlighting="True"
PopupHighlightedTextCriteria="Contains"
ImmediatePopup="True"/>
</Window>
The AllowPopupTextHighlighting property has no effect in the following cases:
- the custom popup content is used (the PopupBaseEdit.PopupContentTemplate property is defined)
- the ItemContainerStyle or ItemContainerStyleSelector properties are defined
- the ItemTemplate or ItemTemplateSelector properties are defined.
See Also