title: How to save the content of Textbox into a textfile
body: <p>I have a textbox which has some content. I also have a button (SAVE) which shud open the FileSaveDialog and allow the content to be saved in a .txt file.</p>
  
  <p>XAML:</p>
  
  <pre><code>&lt;TextBox Height="93" IsReadOnly="True" Text="{Binding Path=ReadMessage, Mode=TwoWay}" Name="MessageRead" /&gt;
  
  &lt;Button Content="Save" Command="{Binding Path=SaveFileCommand}" Name="I2CSaveBtn" /&gt;
  </code></pre>
  
  <p>ViewModel:</p>
  
  <pre><code>private string _readMessage = string.Empty;
      public string ReadMessage
      {
          get
          {
              return _readMessage;
          }
          set
          {
              _readMessage = value;
              NotifyPropertyChanged("ReadMessage");
          }
      }
  
  public static RelayCommand SaveFileCommand { get; set; }
  
  private void RegisterCommands()
      {            
          SaveFileCommand = new RelayCommand(param =&gt; this.ExecuteSaveFileDialog());
      }
  private void ExecuteSaveFileDialog()
      {
          //What To Do HERE???
      }
  </code></pre>
  
  <p>What I basically need is to read the content of textbox, open a file save dialog and store it in a text file to be saved in my system.</p>