title: Databinding and INotifyPropertyChanged doesn't work
body: <p>In my WP7 app I want to update the ApplicationTitle string on all pages at the same time, when something is changed. I've searched for ways of doing it, and people talk about using databinding and the INotifyPropertyChanged interface. However, using the samples i've found, I cannot make it work. I suspect the binding to be wrong, but haven't been able to spot the error. </p>
  
  <p>I have a class called "RegistrationQueue" which has the following code:</p>
  
  <pre><code>    public void Gem()
      {
          var settings = IsolatedStorageSettings.ApplicationSettings;
  
          if (settings.Contains("regqueue"))
          {
              settings["regqueue"] = _registreringsListe;
          }
          else
              settings.Add("regqueue", _registreringsListe);
  
          AppTitle = "LOGIMATIC A/S - " + _registreringsListe.Count + " registreringer i kø";
      }
  </code></pre>
  
  <p>And this:</p>
  
  <pre><code>    private string _AppTitle;
  
      // Declare the PropertyChanged event.
      public event PropertyChangedEventHandler PropertyChanged;
  
      // Create the property that will be the source of the binding.
      public string AppTitle
      {
          get { return _AppTitle; }
          set
          {
              _AppTitle = value;
              // Call NotifyPropertyChanged when the source property 
              // is updated.
              NotifyPropertyChanged("AppTitle");
          }
      }
  
  
      // NotifyPropertyChanged will raise the PropertyChanged event, 
      // passing the source property that is being updated.
      public void NotifyPropertyChanged(string propertyName)
      {
          if (PropertyChanged != null)
          {
              PropertyChanged(this,
                  new PropertyChangedEventArgs(propertyName));
          }
      }
  </code></pre>
  
  <p>Which is basicly a copy/paste from MSDN as far as I can remember. </p>
  
  <p>In one of my XAML pages I've written this:</p>
  
  <pre><code>&lt;TextBlock x:Name="ApplicationTitle" Text="{Binding AppTitle, Mode=OneWay}" Style="{StaticResource PhoneTextNormalStyle}" /&gt;
  </code></pre>
  
  <p>And I thought it would work, but it does not. What am I doing wrong here?</p>
  
  <p>Full XAML for the page:</p>
  
  <pre><code>&lt;phone:PhoneApplicationPage 
      x:Class="FotoDokUdkast.loginScreen"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
      xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
      mc:Ignorable="d" FontFamily="{StaticResource PhoneFontFamilyNormal}"
      FontSize="{StaticResource PhoneFontSizeNormal}"
      Foreground="{StaticResource PhoneForegroundBrush}"
      SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
      shell:SystemTray.IsVisible="True" d:DesignHeight="696" d:DesignWidth="480"&gt;
  
      &lt;!--LayoutRoot is the root grid where all page content is placed--&gt;
      &lt;Grid x:Name="LayoutRoot" Background="Black"&gt;
          &lt;Grid.RowDefinitions&gt;
              &lt;RowDefinition Height="Auto"/&gt;
              &lt;RowDefinition Height="*"/&gt;
          &lt;/Grid.RowDefinitions&gt;
  
          &lt;!--TitlePanel contains the name of the application and page title--&gt;
          &lt;StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28"&gt;
              &lt;!--&lt;TextBlock x:Name="ApplicationTitle" Text="LOGIMATIC A/S" Style="{StaticResource PhoneTextNormalStyle}"/&gt;--&gt;
              &lt;TextBlock x:Name="ApplicationTitle" Text="{Binding Path=AppTitle, Mode=OneWay}" Style="{StaticResource PhoneTextNormalStyle}"/&gt;
              &lt;TextBlock x:Name="PageTitle" Text="FotoDok 0.5b " Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/&gt;
          &lt;/StackPanel&gt;
  
          &lt;!--ContentPanel - place additional content here--&gt;
          &lt;Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0" Background="Black"&gt;
              &lt;TextBlock Height="30" HorizontalAlignment="Left" Margin="6,6,0,0" Name="textBlock1" Text="Et Logimatic program" VerticalAlignment="Top" Width="444" /&gt;
              &lt;toolkit:ListPicker Name="pickerProject" Margin="9,42,15,0" Header="Vælg projekt" ListPickerMode="Normal" ItemCountThreshold="0" FullModeHeader="Vælg projekt" Height="97" VerticalAlignment="Top" /&gt;
              &lt;Button Content="Log ind" Height="72" HorizontalAlignment="Left" Margin="6,337,0,0" Name="btnLogin" VerticalAlignment="Top" Width="444" Click="btnLogin_Click" /&gt;
              &lt;toolkit:ListPicker Header="Vælg bruger" Margin="9,145,15,292" Name="pickerUser" ListPickerMode="Normal" ItemCountThreshold="0" FullModeHeader="Vælg bruger" /&gt;
          &lt;/Grid&gt;
      &lt;/Grid&gt;
  
      &lt;!--Sample code showing usage of ApplicationBar--&gt;
      &lt;phone:PhoneApplicationPage.ApplicationBar&gt;
          &lt;shell:ApplicationBar IsVisible="True" IsMenuEnabled="True"&gt;
              &lt;shell:ApplicationBarIconButton IconUri="Images/appbar.sync.rest.png" Text="Opdater projekter" Click="ApplicationBarIconButtonOpdater_Click"/&gt;
              &lt;shell:ApplicationBarIconButton IconUri="Images/appbar.delete.rest.png" Text="Slet projekter" Click="ApplicationBarIconButtonSlet_Click"/&gt;
              &lt;shell:ApplicationBarIconButton IconUri="Images/appbar.feature.email.rest.png" Text="Registreringer i kø" Click="ApplicationBarIconButtonRegistrering_Click"/&gt;
              &lt;shell:ApplicationBarIconButton IconUri="Images/appbar.feature.settings.rest.png" Text="Tilpas opsætning" Click="ApplicationBarIconButtonSettings_Click"/&gt;
  
          &lt;/shell:ApplicationBar&gt;
      &lt;/phone:PhoneApplicationPage.ApplicationBar&gt;
  
  &lt;/phone:PhoneApplicationPage&gt;
  </code></pre>
  
  <p>I've then written "DataContext = "RegistreringsKø"; " in the constructor for the XAML page (loginscreen.cs) </p>