NoWar
NoWar

Reputation: 37633

Disable selection richtextbox wpf

Any clue how do we can implement it?

This link doesn't help a lot...

http://social.msdn.microsoft.com/Forums/en-US/winformsdesigner/thread/d1132ee5-acad-49f3-ae93-19d386fe2d12

Upvotes: 5

Views: 4926

Answers (4)

Idan
Idan

Reputation: 519

Focusable="False" works for you, but the cursor is still selectable so what you need is this:

Focusable="False"
Cursor="Arrow"

Upvotes: 5

bc3tech
bc3tech

Reputation: 1342

IsTextSelectionEnabled is the property I'm using in WinRT...

Upvotes: 3

Alex
Alex

Reputation: 907

just disable focus

  Focusable="False" 

or

  IsHitTestVisible="False"

if you need to hide selection

  SelectionOpacity="0"

Upvotes: 16

paparazzo
paparazzo

Reputation: 45096

Did you try .IsEnabled = false;

Upvotes: -2

Related Questions