title: Why TextBlock Text is not updating in ViewModel?
body: <p>I am trying to post some values to the next screen through XML serialization and Isolated Storage. Values are posted from textbox and also from textBlock to the next screen's textBlocks with button click event. But the TextBlock's text is not posted to the next screen, only the textBox text is posted. If I debug and check, XML shows as "" with no string loadedinto it. It's also not binding as well. Why?</p>
  
  <pre><code>//MainPage.xaml
          &lt;StackPanel&gt;
                  &lt;Button Margin="10"
                  Content="Simple Sample"
                  Name="btnSimple"
                  Click="btnSimple_Click"&gt;                    
  
                  &lt;/Button&gt;
                  &lt;TextBlock TextWrapping="Wrap"   Text="{Binding FirstName, Mode=TwoWay}"/&gt;           
                  &lt;TextBlock TextWrapping="Wrap" Text="{Binding MyText, Mode=TwoWay}"/&gt;         
  
              &lt;/StackPanel&gt;
  </code></pre>
  
  <hr>
  
  <pre><code> //MainPage.xaml.cs
          using System;
          using System.Windows;
          using Microsoft.Phone.Controls;    
          using System.IO;
          using System.IO.IsolatedStorage;
          using System.Text;
          using System.Xml.Serialization;       
  
          namespace WPIsolatedStorage
          {
            public partial class MainPage : PhoneApplicationPage
            {
              // Constructor
                private LastUser _User = new LastUser();
                private const string USER_KEY = "LastUser";
              public MainPage()
              {
                InitializeComponent();
              }
  
              private void GetUser()
              {
                  string xml;
  
                  xml = IsolatedStorageSettings.ApplicationSettings[USER_KEY].ToString();
                  using (MemoryStream ms = new MemoryStream(Encoding.Unicode.GetBytes(xml)))
                  {
                      XmlSerializer serializer = new XmlSerializer(typeof(LastUser));
                      _User = (LastUser)serializer.Deserialize(ms);
                  }
              }
  
              private void btnSimple_Click(object sender, RoutedEventArgs e)
              {
                NavigationService.Navigate(new Uri("/PageSimple.xaml", UriKind.Relative));
              }
  
              private void PhoneApplicationPage_Loaded_1(object sender, RoutedEventArgs e)
              {
                  if (IsolatedStorageSettings.ApplicationSettings.Contains(USER_KEY))
                      GetUser();
  
                  this.DataContext = _User;            
  
              }
            }
          }
  </code></pre>
  
  <hr>
  
  <pre><code> //LastUser.cs
      using System.ComponentModel;
  
      namespace WPIsolatedStorage
      {       
  
        public class LastUser : INotifyPropertyChanged
        {
          #region INotifyPropertyChanged Event   
          public event PropertyChangedEventHandler PropertyChanged;   
          protected void RaisePropertyChanged(string propertyName)
          {
            if (PropertyChanged != null)
              PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
          }   
          #endregion
  
          #region Private Variables
          private string mFirstName = string.Empty;
  
          private string mTextBlock = string.Empty;
          #endregion
  
          #region Public Variables
          public string FirstName
          {
            get { return mFirstName; }
            set
            {
              if (mFirstName != value)
              {
                mFirstName = value;
                RaisePropertyChanged("FirstName");
              }
            }
          }
  
          public string MyText
      {
          get { return this.mTextBlock; }
          set
          {
              this.mTextBlock = value;
              this.RaisePropertyChanged("MyText");
  
          }
      }}
      } 
  </code></pre>
  
  <hr>
  
  <pre><code>//SeconPage.xaml
  
   &lt;TextBox Grid.Column="1"
                 Grid.Row="0"
                 Text="{Binding FirstName, Mode=TwoWay}"
                 Name="txtFirstName" /&gt;
  
  &lt;TextBlock Grid.Column="1" Name="MyTextBlock" HorizontalAlignment="Left" Margin="12,178,0,-224" Grid.Row="4" TextWrapping="Wrap" Text="{Binding MyText, Mode=TwoWay}" VerticalAlignment="Top" Height="93" Width="191" FontSize="36"/&gt;
  </code></pre>