title: how to bind collection to a grid WPF
body: <p>Ok I have a way to achieve this</p>
  
  <p><img src="https://i.stack.imgur.com/E5k28.png" alt="enter image description here"></p>
  
  <p>but I do way in c# like so</p>
  
  <pre><code>public partial class PlotTest
      {
          public PlotTest(double x, double y)
          {
              InitializeComponent();
  
              PlotControl.Margin = new Thickness(x, y, 0, 0);
          }
  
          public void setPlot(List&lt;double&gt; tempSol)
          {
              double step = (tempSol.Max() - tempSol.Min()) / 10;
  
              for (int ctr = 0; ctr &lt; 10; ctr++)
              {
                  TextBlock rect = (TextBlock)PlotValue.Children[ctr];
                  rect.Text = (ctr == 0) ? tempSol.Max().ToString("F") :
                              (ctr == 9) ? tempSol.Min().ToString("F") : 
                              (tempSol.Max() - ctr * step).ToString("F");
                  rect.TextAlignment = TextAlignment.Right;
                  rect.FontSize = 10;
              }
          }
      }
  }
  </code></pre>
  
  <p>since I do it with c# and I,m using wpf I would like to find a way to bind it to a collectionm precisely this one</p>
  
  <pre><code> private List&lt;double&gt; tempsol = new List&lt;double&gt; {3.21, -5.41, -15.81, -21.69, -21.70, -12.60, -6.41, -0.06, 5.42, 13.32, 14.12, 7.55};
  </code></pre>
  
  <p>but since I'm new to wpf, xaml I'm really unsure how to do it and I can't find any solution that apply directly to my problem I could use some help thank you.</p>