I have a WPF application with many shortcuts.
<Label x:Name="label1" /> <Label x:Name="label2" /> <Label x:Name="label3" /> ....
I do not want each label to mean one by one, for example:
label1.content= 1; label2.content= 20; label3.content= 30; ....
I want to do it more like this:
for(int i = 1; i<40 ;i++) { label"i".content = i*10; }
Is there any way to do this?
source share