Looping over XAML defined labels

后端 未结 6 1298
傲寒
傲寒 2021-01-18 08:58

I have a WPF application with many labels.

         


        
6条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-18 09:24

    How about this?

    List

    The end result will be this.

    label1.Text = 10;
    label2.Text = 20;
    label3.Text = 20;
    ...
    ...
    

提交回复
热议问题