title: modern-ui ListPages - Populate Links using C# without MVVM
body: <p>When I create a new listPage, the xaml code is the following:</p>
  
  <pre><code>&lt;Grid Style="{StaticResource ContentRoot}"&gt;
  &lt;!-- TODO: set @SelectedSource --&gt;
  &lt;mui:ModernTab Layout="List"&gt;
  &lt;mui:ModernTab.Links&gt;
  &lt;!-- TODO: set @Source --&gt;
  &lt;mui:Link DisplayName="Item 1" /&gt;
  &lt;mui:Link DisplayName="Item 2" /&gt;
   &lt;/mui:ModernTab.Links&gt;
  &lt;/mui:ModernTab&gt;
   &lt;/Grid&gt;
  </code></pre>
  
  <p>The problem is I want to be able to create Item1, Item2.. programatically in C#. That  is Link's here should be populated from a list which I will add dynamically. I have not used MVVM and searching for answers. Any suggestion would be appreciated.</p>
  
  <p>This is what I have tried so far in Xaml</p>
  
  <pre><code>&lt;mui:ModernTab Layout="List" Links="{Binding Path=IPList}"&gt;
  </code></pre>
  
  <p>In C#</p>
  
  <pre><code>public partial class ListOfIP : UserControl
      {
          public LinkCollection IPList { get; private set; }
          public ListOfIP()
          {
              InitializeComponent();
              IPList = new LinkCollection();
              testMethod(IPList);
          }
  
          public void testMethod(LinkCollection IPList)
          {
              IPList.Add(new Link() { DisplayName = "IP1" });
              IPList.Add(new Link() { DisplayName = "IP2" });
              IPList.Add(new Link() { DisplayName = "IP3" });
          }
      }
  </code></pre>
  
  <p>Sorry if this is a stupid try, but I am still learning binding in WPF. </p>