UWP 中 UI 控件 TextBox 与 TextBlock 的区别

更新日期: 2018-09-01 阅读次数: 7483 分类: UWP

TextBox 可读、可写。

TextBlock 为只读。

所以,当只需要展示 read only 的文本结果时,最好使用 TextBlock。

方便记忆

这两个很容易混淆,记住带 Box 的是可编辑的,就行。例如,CheckBox, TextBox.

爱评论不评论