TextSearch.Text Attached Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the string that identifies an item in a control's collection.
see GetText, and SetText
see GetText, and SetText
see GetText, and SetText
The following example creates a ComboBox that contains images as items instead of text. The IsEditable property is set to true
, so text is displayed when one of the images is selected.
<ComboBox IsEditable="true">
<Image TextSearch.Text="Cat" Source="data\cat.png"/>
<Image TextSearch.Text="Dog" Source="data\dog.png"/>
<Image TextSearch.Text="Fish" Source="data\fish.png"/>
</ComboBox>
This property specifies the text to displayed when an item is selected, and enables the user to select an item by typing the value of this property. As soon as the user types enough of the value to distinguish the item from other items in the selection, the item will be selected. Use this property on an item in a collection.
Item | Value |
---|---|
Identifier field | TextProperty |
Metadata properties set to true |
BindsTwoWayByDefault |
Производ | Верзије |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET повратне информације
.NET је пројекат отвореног кода. Изаберите везу да бисте обезбедили повратне информације: