I want to make a RadLabel look like a RadTextBox in the current theme, but I have not been able to figure out how to fully accomplish this.
I need to display read-only data on a dialog, but using the RadTextBox and setting ReadOnly to true does not give the behavior I want. The control is still selectable, it takes focus and tab, and the text is still selectable. Even if I set Focusable=false and TabStop=false it behaves the same. If I set Enabled=false the behavior seems correct, but the control becomes grayed out which is not how I want it to look.
If I use a RadLabel to show this data it behaves correctly: it does not accept focus and does not let the user select text in it. If I set the BackColor to like "White" it looks close to how I want it to look, but if I do this it no longer follows the theme. What I want to do is something like set BackColor to whatever the BackColor of a RadTextBox would be in the current theme, but it does not look like themes are applied in this way.
So, is there a way to ask the current theme what the BackColor of a RadTextBox should be? Is there some other way to accomplish this?
Thanks
I need to display read-only data on a dialog, but using the RadTextBox and setting ReadOnly to true does not give the behavior I want. The control is still selectable, it takes focus and tab, and the text is still selectable. Even if I set Focusable=false and TabStop=false it behaves the same. If I set Enabled=false the behavior seems correct, but the control becomes grayed out which is not how I want it to look.
If I use a RadLabel to show this data it behaves correctly: it does not accept focus and does not let the user select text in it. If I set the BackColor to like "White" it looks close to how I want it to look, but if I do this it no longer follows the theme. What I want to do is something like set BackColor to whatever the BackColor of a RadTextBox would be in the current theme, but it does not look like themes are applied in this way.
So, is there a way to ask the current theme what the BackColor of a RadTextBox should be? Is there some other way to accomplish this?
Thanks