AutoSuggestBox.QueryIcon Property

Definition

Gets or sets the graphic content of the button that is clicked to initiate a query.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.AutoSuggestBox.QueryIcon.

public:
 property IconElement ^ QueryIcon { IconElement ^ get(); void set(IconElement ^ value); };
IconElement QueryIcon();

void QueryIcon(IconElement value);
public IconElement QueryIcon { get; set; }
var iconElement = autoSuggestBox.queryIcon;
autoSuggestBox.queryIcon = iconElement;
Public Property QueryIcon As IconElement
<AutoSuggestBox QueryIcon="symbolName" .../>
- or -
<AutoSuggestBox>
    <AutoSuggestBox.QueryIcon>
        iconElement
    </AutoSuggestBox.QueryIcon>
</AutoSuggestBox>

Property Value

IconElement

The graphic content of the button that is clicked to initiate a query, if present; otherwise, null. The default is null.

Applies to