Skip to content

Instantly share code, notes, and snippets.

@nicwise
Created October 31, 2011 17:20
Show Gist options
  • Save nicwise/1328056 to your computer and use it in GitHub Desktop.
Save nicwise/1328056 to your computer and use it in GitHub Desktop.
Section sect = new Section();
var stringElement = new Stringelement(etc etc);
var floatElement = new MVFloatElement(etc etc);
floatElement.OnValueChange += delegate(f) {
stringElement.Value = string.Format("I just got {0:0.00}", f);
//I think you need to do a reload of the tableview here, so it updates.
//
// but you need the tableview, and the root has that...
//if (TableView != null)
// TableView.ReloadData ();
};
sect.Add(floatElement);
sect.Add(stringElement);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment