title: Updating Monotouch.Dialog RootElement
body: <p>I have been following the code from the monotouch.dialog task sample app (http://docs.xamarin.com/ios/Guides/User_Interface/MonoTouch.Dialog/Elements_API_Walkthrough).</p>
  
  <p>Something I dont seem able to work out, is when the user clicks the + button a new row to the table is added. The user touches this and navigates to another screen where they can enter information. Now, when they navigate back to the root view, I want the list of rootElements to be updated so the entered name is used instead of the default name 'connection'</p>
  
  <p>How would I go about updating the text for each of the RootElements based upon what has been entered?</p>
  
  <p>I hope that all makes sense!</p>
  
  <p>-- code below.</p>
  
  <pre><code>public override bool FinishedLaunching (UIApplication app, NSDictionary options)
  {
      window = new UIWindow (UIScreen.MainScreen.Bounds);
  
      RootElement _rootElement = new RootElement ("To Do List"){ new Section()};
  
      DialogViewController _rootVC = new DialogViewController (_rootElement);
  
      // This adds an 'add' button to the root view controller, and handles by delegate,the push to a screen where you can add a new vCenter connection profile.
      UIBarButtonItem _addButton = new UIBarButtonItem (UIBarButtonSystemItem.Add);
      _rootVC.NavigationItem.RightBarButtonItem = _addButton;
  
      _addButton.Clicked += (sender, e) =&gt;  {
          var connectionProfile = new connectionProfile{};
          // See, on the line below, I add a default RootElement with the text New Connection.
  
          var connectionProfileElements = new RootElement ("New Connection") {
              new Section () {
                  // When they enter the name on the next line of code, I want to use this to update the New Connection text on the root screen.
                  new EntryElement ("Name", "Enter Connection Name", connectionProfile._connectionName),
                  new EntryElement ("VC Address", "Enter VC Address", connectionProfile._address),
                  new EntryElement ("VC Port", "Enter VC Port", connectionProfile._port),
                  new EntryElement ("Username", "Enter Username", connectionProfile._userID),
                  new EntryElement ("Password", "Enter Password", connectionProfile._password,true)}      
              };
              _rootElement [0].Add (connectionProfileElements);
          };
  
          UINavigationController _nav = new UINavigationController (_rootVC);
          window.RootViewController = _nav;
          window.MakeKeyAndVisible ();
  
          return true;
      }
  }
  </code></pre>
  
  <p>And :</p>
  
  <pre><code>public class connectionProfile
  {
  public connectionProfile ()
      {
      }
  
      public string _connectionName { get; set; }
      public string _address { get; set; }
      public string _port { get; set; }
      public string _userID {get; set; }
      public string _password { get; set; }
  }
  </code></pre>