Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make disabled TextBoxes selectable?

Tags:

c#

wpf

xaml

telerik

I have a WPF application that contains telerikRadDataForms with the usual sort of controls, TextBlocks, TextBoxes, a number of telerik:RadGridViews, etc.

These forms may be displayed in read-only or can be editable. My problem is that my users want to be able to select, then copy to the clipboard, text that is displayed in the TextBoxes, when the forms are in read-only mode, and the controls are disabled.

The problem is that the textboxes aren't selectable, and hence the users can't copy the text that is in them.

Anyone have any ideas?

like image 481
Jeff Dege Avatar asked Nov 16 '25 18:11

Jeff Dege


1 Answers

If you want the text to be selectable but read only, you can accomplish this by setting .ReadOnly to be true, rather than disabling the TextBoxes.

like image 118
samhareem Avatar answered Nov 18 '25 09:11

samhareem



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!