问题描述
如何使RichEditBoxText无法选择。 我仍然希望RichEditBox能够滚动和接收点击事件。 我只是不想在你点击时设置RichEditBox的范围。
How do I make the RichEditBoxText unselectable. I still want the RichEditBox be able to scroll and receive tap events. I just do not want the range of the RichEditBox to be set when you tap.
推荐答案
RichEditBox用于输入和编辑包含格式化文本,超链接和图像的富文本文档。可以选择RichEditBox中的文本是预期的行为,因为您可以更改部分文本。使文本无法选择对于RichEditBox来说不是很好的
练习。如果您不想选择文本,为什么不尝试使用
RichTextBlock ?
RichEditBox is used to enter and edit rich text documents that contain formatted text, hyperlinks, and image. Text in the RichEditBox could be selected is expected behavior as you could change part of the text. Making the text unselectable is not good practice for RichEditBox. If you don't want the text could be selected, why not try to useRichTextBlock?
祝你好运,
Roy
这篇关于[UWP]如何使RichEditBox文本无法选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!