Richard Gale
Richard Gale

Reputation: 1952

WPF Textbox Adorner

I have added an Adorner to a Textbox in order to highlight unknown words for custom spellcheck. The adorner works great and the words are being highlighted (underlined).

The issue I need help with is now that the adorner is in place, I can no longer select words in the textbox (I want to be able to highlight a word and then right click and 'Add to dictionary'.

Does anyone know how to achieve this? Do I have to do something to the textbox or is this going to be the responsibility of the adorner now?

Upvotes: -1

Views: 162

Answers (1)

Richard Gale
Richard Gale

Reputation: 1952

As pointed out by BionicCode, setting IsHitTestVisible to false resolved the issue here.

Upvotes: 0

Related Questions