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 (C#)。
我希望用户只能在富文本框中键入一行(不能按回车键)。谁能告诉我如何设置这种富文本框属性?
将其AcceptsReturn属性/属性设置为false.
AcceptsReturn
false