title: Add items to ItemsControl
body: <p>I have an application for telephone call. Each call(line) has its own unique information. Say a colorful icon plus and line number. The numbers are in a queue, I used parallel programming skills to deal these items. When processing the item, the information is shown on the screen. Here I prefer ItemsControl.</p>
  
  <p>The expected result likes the image. I want to</p>
  
  <p><img src="https://i.stack.imgur.com/kTVfB.png" alt="line"></p>
  
  <p>I borrowed the code for phone icon.</p>
  
  <pre><code>&lt;ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                                     &gt;
  &lt;SolidColorBrush x:Key="RedBrush" Color="Red" /&gt;
  &lt;SolidColorBrush x:Key="AmberBrush" Color="#FFFFC500" /&gt;
  &lt;SolidColorBrush x:Key="GreenBrush" Color="Green" /&gt;
  &lt;Geometry x:Key="PhoneIcon"&gt;F1M52.5221,11.1016C52.0637,10.6796 44.4973,4.55737 29.4347,12.7369 26.3098,14.4296 23,17.224 20.095,20.1692 17.1497,23.073 14.3555,26.3842 12.6626,29.509 4.48303,44.5703 10.6093,52.1393 11.0298,52.5962 11.0298,52.5962 12.9778,55.5885 14.7057,53.8579L23.3555,45.2134C24.897,43.6692 22.7721,39.2134 18.2563,39.3541 17.1301,39.3906 15.5481,38.9531 17.0571,35.5156 18.3945,32.4623 22.3436,27.4766 24.8879,24.9648 27.4048,22.418 32.3904,18.4713 35.4426,17.1301 38.8787,15.6223 39.3175,17.2031 39.2811,18.332 39.1393,22.8462 43.5962,24.9686 45.1366,23.4283L53.7864,14.7787C55.5142,13.052,52.5221,11.1016,52.5221,11.1016z&lt;/Geometry&gt;
  </code></pre>
  
  <p></p>
  
  <p>My question: If I know the color of the phone icon and the phone number, how to add it to the itemscontrol? The phone number needs to be bind, I assume I have a class:</p>
  
  <pre><code>    public class Lines
      {
          public string color { get; set; }
          public string linenumber { get; set; }
      }
  </code></pre>
  
  <p>And I defined the ItemsControls as:</p>
  
  <pre><code>&lt;DockPanel&gt;  
          &lt;ItemsControl Height="300"&gt;
              &lt;ItemsControl.ItemTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;Grid&gt;
                          &lt;Grid.ColumnDefinitions&gt;
                              &lt;ColumnDefinition Width="40"/&gt;
                              &lt;ColumnDefinition Width="100"/&gt;
                          &lt;/Grid.ColumnDefinitions&gt;
  </code></pre>
  
  <p>Not sure the next step?</p>