Skip to content

Commit bf6a14c

Browse files
Update README.md
1 parent b516119 commit bf6a14c

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

README.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
1-
# How to search and highlight item in TreeViewAdv
1+
# How to search and highlight items in WPF TreeViewAdv?
22

3-
This example demonstrates how to search and highlighted the item of `TreeViewAdv` control in WPF platform.
4-
5-
# About Sample
6-
7-
This sample provides the demo on how to search and highlight the text in `TreeViewAdv`.
8-
9-
To search and highlight the item in `TreeViewAdv`, Search method has been implemented which is used to compare the search text with model items. Highlighted the matched text in TextBlock inside the `TreeViewItemAdv`.
3+
In [WPF TreeViewAdv](https://help.syncfusion.com/wpf/classic/treeview/overview) to search and highlight the item, **Search** method has been implemented which is used to compare the search text with model items and highlighted the matched text in TextBlock inside the [TreeViewItemAdv](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Tools.Controls.TreeViewItemAdv.html).
104

115
``` c#
126
if (mainitem != null && MatchSearchText(model.Header))
137
{
14-
//Function which is used to apply inline to the TextBlock
15-
ApplyInline(mainitem, false);
8+
// Function which is used to apply inline to the TextBlock
9+
ApplyInline(mainitem, false);
1610
}
1711
```
18-
1912
Options like Search, FindPrevious, Find Next, SearchType (Contains, EndsWith, StartsWith options) has been used to match search text using ApplyInline method and apply the SearchBrush for highlighting the search text.
2013

2114
``` c#

0 commit comments

Comments
 (0)