I can see that Hyperlink is available inside the TextBlock element, however Visual Studio underlines it as an error, saying “[TextElementCollection_TypeNotSupportedInHost]”.
<TextBlock>
Please <Hyperlink NavigateUri="http://example.com/">click here</Hyperlink>, thanks.
</TextBlock>
What is the recommended approach for this? Thanks!
You are mixing text and a component. Instead, here is how to put links in the context of a RichTextBox. Default
TextBoxcontrols do not support hyperlinks.