Skip to main content

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public bool AllowPopupTextHighlighting { get; set; }

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:

See Also