[UWP]如何使RichEditBox文本无法选择? [英] [UWP] How to make RichEditBox text unselectable?

查看:97
本文介绍了[UWP]如何使RichEditBox文本无法选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使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 use RichTextBlock?

祝你好运,

Roy


这篇关于[UWP]如何使RichEditBox文本无法选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆