TextBox 没有 IsReadOnlyCaretVisible 属性

TextBox doesnt have IsReadOnlyCaretVisible Property

我正在创建一个 Windows Phone 8.0 (Silverlight) 应用程序,我试图向插入符号显示一个只读文本框,但它没有这样的 属性。

documentation

当您开发 Windows Phone 8.0 (Silverlight) 时,您应该使用以下文档站点:

https://msdn.microsoft.com/library/windows/apps/ff402535.aspx

在 Silverlight 中你只有 TextBox.IsReadOnly 属性 TextBox doc - TextBox IsReadOnly doc

TextBox IsReadOnly 备注:

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.