This question is locked. New answers and comments are not allowed.
Hi,
how do you set border for TextBox/PasswordBox when IsReadonly is set to true? By default the border is hidden until the field has focus. This is how I set Text/PasswordBox style in a resource file.
Thanks
edit: I would like to have same look as when IsEnabled is set to False, with only difference that text can be selectable.
how do you set border for TextBox/PasswordBox when IsReadonly is set to true? By default the border is hidden until the field has focus. This is how I set Text/PasswordBox style in a resource file.
<
Style
TargetType
=
"TextBox"
>
<
Setter
Property
=
"telerik:StyleManager.Theme"
Value
=
"Metro"
/>
<
Setter
Property
=
"HorizontalContentAlignment"
Value
=
"Left"
/>
</
Style
>
<
Style
TargetType
=
"PasswordBox"
>
<
Setter
Property
=
"telerik:StyleManager.Theme"
Value
=
"Metro"
/>
<
Setter
Property
=
"HorizontalContentAlignment"
Value
=
"Left"
/>
</
Style
>
Thanks
edit: I would like to have same look as when IsEnabled is set to False, with only difference that text can be selectable.