Need to add text to rectangle

前端 未结 3 1129
野趣味
野趣味 2020-12-09 04:37

I am creating Dynamic Rectangle and adding into StackPanel. I need to add text to each rectangle. How can I do that?

3条回答
  •  感情败类
    2020-12-09 05:22

    You need to add a textual control to your StackPanel, such as Label or TextBlock.

提交回复
热议问题