Clicking HyperLinks in a RichTextBox without holding down CTRL – WPF

I found a solution. Set IsDocumentEnabled to “True” and set IsReadOnly to “True”.

<RichTextBox IsReadOnly="True" IsDocumentEnabled="True" />

Once I did this, the mouse would turn into a ‘hand’ when I hover over a text displayed within a HyperLink tag. Clicking without holding control will fire the ‘Click’ event.

I am using WPF from .NET 4. I do not know if earlier versions of .NET do not function as I describe above.

Leave a Comment