Silverlight RichTextBox Disable Mouse Selection

Posted by Fastidious on Stack Overflow See other posts from Stack Overflow or by Fastidious
Published on 2010-04-23T17:17:32Z Indexed on 2010/04/23 17:33 UTC
Read the original article Hit count: 532

Filed under:
|

I am writing a custom control based on RichTextBox that needs the ability to process MouseLeftButtonDown events but must not allow user-initiated selection (I'm doing everything programmatically).

I tried setting a flag in MouseLeftButtonDown to track dragging and then continuously setting the RichTextBox.Selection to nothing in the MouseMove event but the move event isn't fired until after I release the mouse button.

Any ideas on how to solve this? Thanks.

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about richtextbox