Back to Devexpress

AutoSuggestEdit.AllowPopupTextHighlighting Property

wpf-devexpress-dot-xpf-dot-editors-dot-autosuggestedit-f2dc09f4.md

latest2.7 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool AllowPopupTextHighlighting { get; set; }
vb
Public Property AllowPopupTextHighlighting As Boolean

Property Value

TypeDescription
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.

xaml
<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

AutoSuggestEdit Class

AutoSuggestEdit Members

DevExpress.Xpf.Editors Namespace