Search code examples
c#wpfxamltextblock

Textblock text selection


I have a chat window where each message is a TextBlock. I want to be able to select the text inside my TextBlocks. Google says to use a TextBox instead, which I cannot do because they do not support runs, which I am using to create hyperlinks inside my messages. What options do I have?


Solution

  • Check out the RichTextBox implementation for WPF.