'How to select part of the text of a TextBlock control?
I have a UWP Desktop application that has a TextBlock control with a very long text. The application has a search option, where the user types a word and the application must select the first occurrence of the word in the text. In a TextBox it is very easy, because the Select method takes two integers as parameters. But in the Select method of the TextBlock the parameters are TextPointers. How do I make this selection?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
