-api-id | -api-type |
---|---|
P:Microsoft.UI.Xaml.Controls.AutoSuggestBox.TextMemberPath |
winrt property |
Gets or sets the property path that is used to get the value for display in the text box portion of the AutoSuggestBox control, when an item is selected.
<AutoSuggestBox TextMemberPath="propertyName"/>
- propertyName
- propertyNameThe name of the property of the selected item that should be used to set or change the Text value. Use this in cases where the string/property displayed in a suggestion item that's based on a data object isn't the same value that the Text value is using.