TextBox.IsReadOnly Property
Silverlight
Gets or sets the value that determines if the user can change the text in the text box.
Namespace: System.Windows.Controls
Assembly: System.Windows (in System.Windows.dll)
<TextBox IsReadOnly="bool"/>
Property Value
Type: System.Booleantrue if the text box is read-only; otherwise, false. The default is false.
Dependency property identifier field: IsReadOnlyProperty.
If the text box is read-only, no user input or edits are allowed, but programmatic changes can be made. The user can still select text, and the cursor still appears. The KeyUp and KeyDown events are marked as handled.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.