TextBlock: 用于显示文本内容
常用属性
|------------|---------|
| Text | 设置展示的文本 |
| fontsize | 设置字体大小 |
| FontWeight | 设置字体粗细 |
| FontFamily | 设置字体样式 |
实例
cs
<Grid>
<TextBlock Text="显示文本"
FontSize="10"
FontWeight="Bold"
Foreground="red">
</TextBlock>
</Grid>
效果:
