UWP 中 UI 控件 TextBox 与 TextBlock 的区别

文章目录

    TextBox 可读、可写。

    TextBlock 为只读。

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

    方便记忆

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