title: how to get the texbox value from view to viewmodel in silverlight mvvm?
body: <p>In my project i'm using Silverlight5 with MVVM Pattern.
  I have the following:</p>
  
  <pre><code>View        : Manager.xaml
  Code-Behind : Manager.Xaml.cs
  ViewModel   : ManagerViewModel.cs
  </code></pre>
  
  <p>in my view i have one textbox and i have assigned the value is 10.</p>
  
  <p>Manager.xaml</p>
  
  <pre><code>&lt;TextBox Name="gid" Visibility="Collapsed" /&gt;
  </code></pre>
  
  <p>Manager.xaml.cs</p>
  
  <pre><code>gid.Text=(((TextBlock)DG.Columns[5].GetCellContent(DG.SelectedItem)).Text);
  ManageViewModel vm = DataContext as ManageViewModel;
              if (vm != null)
              {
                  vm.EditCommand.Execute();
              }
  </code></pre>
  
  <p>ManagerViewModel.cs:</p>
  
  <pre><code>private DelegateCommand _editCommand;
      public DelegateCommand EditCommand
      {
          get
          {
  
              if (_editCommand == null)
                  _editCommand = new DelegateCommand(() =&gt;
                  {
                      **//Here i need to get the value that is assigned in the textbox.**
                      ANCViewModel.Show();
                  });
              return _editCommand;
          }
      }
  </code></pre>
  
  <p>Here my question is how i have to get the value that is assigned in the textbox from view to ViewModel. Any Help..?</p>