Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我正在制作一个 WPF 项目,其中我的一个窗口必须让用户看到文本。选择此文本的一部分以放入字符串数组中,仅此而已。因此,他/她必须能够编辑文本中的任何内容,仅突出显示部分,然后单击按钮。什么 WPF 控件可以聪明地用于此目的?
我可能只是用TextBoxset IsReadOnly。之后,您只需要各种选择属性。
TextBox
IsReadOnly