Create bindings of ListView items programmatically <p>I have the following wpf control added to xaml:</p> <pre class="lang-xml prettyprint-override"><code>&lt;ListView Margin="22,80,271,12" Name="listView1" ItemsSource="{Binding}" /&gt; </code></pre> <p>I know how to create a ListView object programmatically. The only thing that I am missing is how could I add the property </p> <pre class="lang-xml prettyprint-override"><code>ItemsSource="{Binding}" </code></pre> <p>with code to that object. I have already managed to add the columns and gridview with c#. The only thing that I am missing is to add that property ItemsSource="{Binding}" </p> <p>I have tried looking for an answer <a href="http://stackoverflow.com/questions/3874218/what-does-itemssource-binding-mean/3874319#3874319">here</a>.</p>