title: How to bind ObservableCollection to IList property in XAML?
body: <p>I have IList property to get ItemSource of my DropDown list. How can I bind a ObservabelCollection to IList property in view(XAML)? I tried normal binding but it throws null reference exception. </p>
  
  <p>Note: I can able to bind collection in code behind. I am getting exception only when I try to bind it through Xaml.  </p>
  
  <p>I tried with collections of type ObservableCollection, IList and IEnemerable </p>
  
  <p><strong>IList Property</strong></p>
  
  <pre><code>    public IList ItemsSource
      {
          get { return this.itemsSource; }
          set { this.itemsSource = value; }
      }
  </code></pre>
  
  <p><strong>Colletion</strong></p>
  
  <pre><code>    public IList&lt;Address&gt; AddressSource
      {
          get { return this.address; }
          set { this.address = value; }
      } 
  </code></pre>
  
  <p><strong>Xaml view</strong></p>
  
  <pre><code>&lt;DataForm Editor="DropDown" ItemsSource="{Binding AddressSource}" Name="Country"/&gt;
  </code></pre>