title: Simple Binding does not work
body: <p>I've got that simple Data Binding in a Windows 8.1 App using C#/XAML as well as the MVVM-Light-Toolkit and it does not work. I want to Display a list that lists the time from 6 o'clock in the morning to 6 o'clock the next day. Here is the relevant code:</p>
  
  <pre><code>public class DayViewViewModel : ViewModelBase
  {
      private ObservableCollection&lt;DateTime&gt; _TimesList = null;   
  
      /// &lt;summary&gt;
      /// Sets and gets the TimesList property.
      /// Changes to that property's value raise the PropertyChanged event. 
      /// &lt;/summary&gt;
      public ObservableCollection&lt;DateTime&gt; TimesList
      {
          get
          {
              return _TimesList;
          }
  
          set
          {
              if (_TimesList == value)
              {
                  return;
              }
  
              RaisePropertyChanging(TimesListPropertyName);
              _TimesList = value;
              RaisePropertyChanged(TimesListPropertyName);
          }
      }
  
      public void CreateTimes()
      {
          TimesList = new ObservableCollection&lt;DateTime&gt;();
          for (int i = 0; i &lt; 24; i++)
          {
              TimesList.Add(DateTime.MinValue.AddHours(6 + i));
          }
      }
  }
  </code></pre>
  
  <p>Now the binding in XAML EDIT: The full hierarchy is shown now:</p>
  
  <pre><code>        &lt;ListView&gt;
              &lt;ListView.ItemTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;Grid&gt;
                          &lt;Grid.ColumnDefinitions&gt;
                              &lt;ColumnDefinition Width="0.7*"/&gt;
                              &lt;ColumnDefinition Width="2*"/&gt;
                          &lt;/Grid.ColumnDefinitions&gt;
  
  
                          &lt;ListView Grid.Column="0"
                                      ItemsSource="{Binding Day.TimesList, Mode=TwoWay, Source={StaticResource Locator}}" 
                                      ItemTemplate="{Binding Source={StaticResource DayCalendarTimesItemTemplate}}"&gt;
                          &lt;/ListView&gt;
  
                      &lt;/Grid&gt;
                  &lt;/DataTemplate&gt;
              &lt;/ListView.ItemTemplate&gt;
          &lt;/ListView&gt;
  </code></pre>
  
  <p>And the template:</p>
  
  <pre><code>&lt;DataTemplate x:Key="DayCalendarTimesItemTemplate"&gt;
      &lt;Grid Height="80"&gt;
          &lt;TextBox Text="{Binding Date}"/&gt;
      &lt;/Grid&gt;
  &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>Well I guess that I am binding to the wrong object in the TextBox? I am really frustrated about that problem - I just can't figure out what is wrong here.</p>
  
  <p>EDIT: Information about the Locator:</p>
  
  <p>The locator is the standard locator provided by the MVVM-Light Toolkit:</p>
  
  <p>Here is the Class with the registration of that ViewModel:</p>
  
  <pre><code>public class ViewModelLocator
  {
      /// &lt;summary&gt;
      /// Initializes a new instance of the ViewModelLocator class.
      /// &lt;/summary&gt;
      public ViewModelLocator()
      {
          ServiceLocator.SetLocatorProvider(() =&gt; SimpleIoc.Default);
  
          SimpleIoc.Default.Register&lt;DayViewViewModel&gt;();
      }
  
      public DayViewViewModel Day
      {
          get
          {
              return ServiceLocator.Current.GetInstance&lt;DayViewViewModel&gt;();
          }
      }
  }
  </code></pre>
  
  <p>The locator is instantiated in the App.xaml:</p>
  
  <pre><code>&lt;Application.Resources&gt;
      &lt;ResourceDictionary&gt;
          &lt;vm:ViewModelLocator x:Key="Locator"/&gt;
      [...]
      &lt;/ResourceDictionary&gt;      
  &lt;/Application.Resources&gt;
  </code></pre>
  
  <p>Thank you very much for your help!</p>
  
  <p>FunkyPeanut</p>