TextSearch
It identifies
each item in a control collection.There are two
properties of TextSearch as TextPath and Text.We use these as
TextSearch.TextPath =” ” and TextSearch.Text=” ” respectively but serve the
same purpose only way of syntaxing is different.We use this
property on a control that contains a collection of items.
Here we will use
a comboBox that contains images as items instead of text.Now we set IsEditable
property of comboBox to true so that whenever image selected,the corresponding
text could be displayed.
TextSearchExample1.xaml
1.First method
2.Second Method
UI Display:
After pressing
F5
Now click on
dropdown icon, we can see the collection of images in comboBox.
Now click on any
image (here we clicked on Lighthouse).
We can see the text LightHouse in comboBox .
No comments:
Post a Comment