简体   繁体   English

我的 window 应该使用什么 WPF 控件?

[英]What WPF control should i use for my window?

So im making a WPF project where one of my windows has to let the user see a text.所以我正在制作一个 WPF 项目,其中我的 windows 之一必须让用户看到文本。 Select parts of this text for being put into an array of strings and no more than that.将此文本的 Select 部分放入字符串数组中,仅此而已。 So he/she musnt be able to edit anything in the text only highlight parts and then click on a button.所以他/她不能编辑文本中的任何内容,只能突出显示部分,然后单击按钮。 What WPF control would be smart to use for this?为此使用什么 WPF 控件会很聪明?

I'd probably just use TextBox with IsReadOnly set.我可能只使用带有IsReadOnly集的TextBox The various selection properties are all you need after that.之后,您只需要各种选择属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM