title: How do I populate XAML Listbox Items from a method that requires a single argument?
body: <p>So I have a Listbox:</p>
  
  <pre><code>&lt;ListBox Grid.Row="0" Grid.Column="1" Grid.RowSpan="2"&gt; //&lt;----Item's Data Source Method Call Here?
      &lt;ListBox.ItemsPanel&gt;
          &lt;ItemsPanelTemplate&gt;
              &lt;VirtualizingStackPanel
               Orientation="Horizontal"
               IsItemsHost="true"  /&gt;
          &lt;/ItemsPanelTemplate&gt;
       &lt;/ListBox.ItemsPanel&gt;
       &lt;ListBox.ItemTemplate&gt;
         &lt;DataTemplate&gt;
            &lt;StackPanel Grid.Row="0" Grid.Column="1" Grid.RowSpan="2" Orientation="Vertical"&gt;
               &lt;Label Content="{Binding Address1}"&gt;&lt;/Label&gt;
               &lt;Label Content="{Binding Address2}"&gt;&lt;/Label&gt;
               &lt;Label Content="{Binding Town}"&gt;&lt;/Label&gt;
               &lt;Label Content="{Binding Postcode}"&gt;&lt;/Label&gt;
               &lt;Label Content="{Binding Country}"&gt;&lt;/Label&gt;
               &lt;CheckBox Content="{Binding Include}"&gt;&lt;/CheckBox&gt;
            &lt;/StackPanel&gt;
         &lt;/DataTemplate&gt;
       &lt;/ListBox.ItemTemplate&gt;
  &lt;/ListBox&gt;
  </code></pre>
  
  <p>What I would like to do is set the item's data source to a list of addresses all of which have the same postal code. So I need a list of the current addresses in an Observable Collection with the same postcode. To generate such a list of addresses would only take a call to a method which accepts the current postcode as a an argument but I don't know how to call a method that requires an argument from a static datasource.</p>
  
  <p>Can anyone help?</p>