הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
This example shows how to configure a TextBox control to not allow user input or modification.
Example
To prevent users from modifying the contents of a TextBox control, set the IsReadOnly attribute to true.
<TextBox
IsReadOnly="True"
>
The user may not modify the contents of this TextBox.
</TextBox>
The IsReadOnly attribute affects user input only; it does not affect text set in the Extensible Application Markup Language (XAML) description of a TextBox control, or text set programmatically through the Text property.
The default value of IsReadOnly is false.
See also
.NET Desktop feedback