Supposing we're having this case of a RichTextBlock :
<RichTextBlock IsTextSelectionEnabled="True">
<Paragraph>
<Run Text="{Binding Description}" />
</Paragraph>
</RichTextBlock>
Is it possible to detect possible hyperlinks in the content so that when the user clicks them, the web browser app will open up?
For example, let's suppose the Description
property would consist of the following string:
"Welcome to Stackoverflow. You can find a quick guide at http://www.stackoverflow.com/guide. To track your questions, please visit http://www.stackoverflow.com/questions. Happy coding!"
Currently this exact string is bound on the UI, but I would like somehow to be able to detect possible links and be able to navigate to them when tapping them, just as you can using a web browser.
The text selection set to disabled is one of the requirements I have to meet, altough that could help in some way to copy-paste the link, at least.
Any suggestions are highly appreciated!