I am trying to show a group variables that contains a string from the code behind (C#) to Textblock in XAML using the code below:
Textblock1.Text = String1Class;
Textblock2.Text = String2Class;
Textblock3.Text = String3Class;
Textblock4.Text = String4Class;
Textblock5.Text = String5Class;
Textblock6.Text = String6Class;
The code works but its a pain writing the same thing over and over again. I want to ask if there is a better way. I know it has to do with arrays and loops, but I am not very familiar with C# and WPF.
