title: How to update listbox with ObservableCollection data in Win RT
body: <p>I am trying to update  <code>listbox</code> form  <code>ObservableCollection</code> but don't know what am doing wrong that i always get the exception below. i am  new to <em>winRT</em>.</p>
  
  <blockquote>
    <p>The application called an interface that was marshalled for a
    different thread. (Exception from HRESULT: 0x8001010E
    (RPC_E_WRONG_THREAD))</p>
  </blockquote>
  
  <pre><code>&lt;ListBox x:Name="UserList" HorizontalContentAlignment="Stretch" Margin="12,41,12,12"&gt;
          &lt;ListBox.ItemTemplate&gt;
              &lt;DataTemplate&gt;
                  &lt;Grid Margin="10"&gt;
                      &lt;Grid.ColumnDefinitions&gt;
                          &lt;ColumnDefinition Width="20" /&gt;
                          &lt;ColumnDefinition Width="150" /&gt;
                          &lt;ColumnDefinition Width="*" /&gt;
                      &lt;/Grid.ColumnDefinitions&gt;
                      &lt;TextBlock Text="{Binding Title}" Margin="3" Grid.Column="0" /&gt;
                      &lt;TextBlock Text="{Binding Description}" Margin="3" Grid.Column="1" /&gt;
                      &lt;TextBlock Text="{Binding Title}" Margin="3" Grid.Column="2" /&gt;
                  &lt;/Grid&gt;
              &lt;/DataTemplate&gt;
          &lt;/ListBox.ItemTemplate&gt;
        &lt;/ListBox&gt;  
  </code></pre>
  
  <p>C# code. </p>
  
  <pre><code>protected  override void OnViewModelCollectionChanged(object sender,System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
      {
  
           this.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =&gt;
         {
             UserList.ItemsSource = Items;
  
         }).AsTask().Wait();
  
  
      }
  </code></pre>